DSep DSep

moving the minmap?

moving the minmap?

anyone know?

Does anyone know how to move the minimap? i know it's been done before but i'm not sure how! Is it part of a dxpack or something?

-Dave
25,700 views 42 replies
Reply #26 Top
Cool! You'll have to share some of those new tricks your learning .
End of quote


1) to move the minimap, you must first remove the code that defines it's location. Then delete the same code from the "comments" box in the summery tab. Then you can drag the minimap to any location you want. ;)

2) To keep the main console from stretching like in the pic above, you must delete all the resizing code and also delete it in the comments box. then it won't get stretched. If the problem persists, do the same thing with the sizing code in the background layer.

3) to anchor an object to the right side, just enter the following code:

Object.Right = Object.Parent.Object.Width
That will make it stay flush right. I would assume that to anchor something left, you just have to replace right with left. ;)

-Dave
Reply #27 Top
how's that for tricks that i'm learning? ;)

-Dave
Reply #28 Top
Pretty darned good Dave. :)

I can pretty much move anything where I want, my biggest issue is I need to be able to use the scaling code(ex. System.ScreenWidth, Object.Parent commands) to get the changes to look right for all resolutions. I can make it look good on my screen, but people using othe res. end up with things out of alignment, stretched or totally off screen at times.

For instance here is the exampleMod UI that I started working on at my normal 1440x900 resolution.


And this is the same UI at 1024x768. You'll barely see edge of the Ships stats/graph display in the extreme top left corner.


I'm sure if I could just decifer a few of these commands it would be relatively easy to fix.
Reply #29 Top
talk to paul for help on that stuff.

Dave
Reply #30 Top
deleting the default sizing code may help ;)

-Dave
Reply #31 Top
There are some amazing DX coders over at wincustomize.  They often dig questions like what you have.

Try posting over at https://forums.wincustomize.com/forum/37

You may have to give them script and screenshots to play with as I don't know if they are GalCiv players.
Reply #32 Top
Thanks Zubaz I'll check it out :)

I got it!!(atleast the above problem) Using this code:
Sub System_OnScreenChange

Object.Left = Object.Parent.Object.Left 15
Object.Top = Object.Parent.Object.Top 48

End Sub

Tieing the Object(in this case MainDisplay) to the parent(MainBackground) I can keep it 15 pixels off the left edge and 48 pixels from the top, no matter the resolution. It still isn't a perfect solution, but goes a long way to solving that mystery for me :) .
Reply #33 Top
Well, well, well - NOW, i want me one of those! ;)

As long as it is entirely compatible & thoroughly tested, it certainly would re-new the gameplay feelings & possibly provide an efficient UI to anyone willing to brake up the usual default monotony.

Great work, indeed. And, in fact, that is exactly what i call excellent Modding stuff.
Reply #34 Top
Thanks! I thrive on bending the game to its limits ;)

-Dave
Reply #35 Top
Amazing work Dsep your becoming a really good modder way to go.
Reply #36 Top
Thanks! I thrive on bending the game to its limits -Dave
End of quote


oops! looks like i took credit for the compliment on dethader's work! :LOL: :LOL:

Amazing work Dsep your becoming a really good modder way to go.
End of quote


Finally, a compliment for me ;) thanks!

-Dave
Reply #37 Top
If DethAdder hadn't been there to expand on your stuff, DSep, nobody could have got such things as an alternate UI worth loading up!
Which is to say that Modders' collaboration can actually be pretty useful to us all... i too would love to have much more spare time to fiddle with some of the UI tricky settings but as i must concentrate on other issues (duh-XCom!), it simply means that everyone out there in the great void of unknown existence working at solutions can always count on the gang overhere to contribute what they can.

Fact is... WE all simply enhance this game beyond the call of duty with every last gimmicks our minds strive upon. And, we're not even on SD payroll and can't seriously claim being as good as their absolutely fantastic in-house staff - although. ;)

It's the proverbial Two-Heads (and multiple) are always better than One, i think.
Reply #38 Top
I don't deserve any Kudos really. I think we're all learning this thing together.

The recent activity on this subject though got me back into messing around with it again and I've already gotten better with it then I was before.

Dave's UI is looking a lot farther along than anything I've put together so far, but I did redo my minimap console to a much better look I think.


The only thing I couldn't really get the way I wanted on it(yet) was the Civ Power graph/bar. I instead unparented it from the Minimaps Console(Main_Console) and just hooked it to the background. I then created a new frame for it and put it near the bottom right. The minimap is in the upper right.

I haven't messed with the Maindisplay console yet, because it will be a much more involved ordeal due to the fact that I have to alter several .Dxpacks that control what is displayed in that window. I hope to be able to totally reorganize it and make it at least seem a little less obtrusive into the gameplay area putting it in the upper left.

This is much more fun to me than doing .xml work. Not only do I get to make pretty pictures with Gimp, I also get to learn something new with DX :)
Reply #39 Top
here's what mine looks like now:


what do you think?

-Dave
Reply #40 Top
Looking Pretty good :) . I really like the C & C inspired concept. The only thing, and I realize it's still a work in progress so you may still be adjusting it, is the Minimap/Command console seems to be pretty far out into the screen from the side. Great job on the Graphics for it. Did you make them yourself or just reorganized the ones that were there? Some of them look familiar.

Reply #41 Top
thanks. the screen here is not completely up to date. those 2 buttons right under the minimap have been RA2ified! I know about it being out there in space. i've tried getting it resolved, but when i put in code to make stay flush right, it get's ultra thin! and it looks odd!

the graphics on the buttons are the standard GC2 ones and the buttons are all made from a screenshot taken from RA2. i just made them silver and made them functional!

-Dave
Reply #42 Top
I to had wanted to move the mini map but not having a understanding of DX gave it up for other things to mod i did get a four button on the government screen.



I could use some help on finish it I would like to add a 4th government or at least try!!

BTW it is suppose to say UPFOG not UNFOG :NOTSURE: 

UPFOG = United Planets Federation Of Galaxies !!

Nasty