Now what I didn't think about when creating the dialog was the fact that the dialog items inside the dialog as well as the dialog itself must scale with each and every player's screen resolution.
I figured that this is undoubtly the best method of dynamically scaling dialogs at the moment and here is where my true problem lies.
It should be said that it is not the actual size of the dialog that has to be changed because I'm using Full-screen dialog. However, proportional distances between the dialog items inside the dialog is what needs to be fixed.
I need advice, what is the best thing to do?
Option 1: Try to implement the "Improved: Get Resolution"-library into my current, static dialog. Probably painstaking.
Option 2: Remake the whole Skill Tree basing the whole dialog from the example used by Taldeen.ยด
While this may be the most secure and stable way, it will take A LOT of time.
Furthermore, I was thinking about just scaling down the whole window and its proportions so that the window always would be small enough no matter the aspect ratio.
If I recall correctly, Dialogs will actually scale to match the player's resolution. For example change SC2 to windowed mode, and drag the window edge to change the resolution, and it should scale correctly.
Greetings mapsters!
I have created a skilltree that can be compared to the model of Diablo 2. Reference: http://www.diablowiki.com/images/3/37/Sorceress_Skill_Trees_(Diablo_II).png
Now what I didn't think about when creating the dialog was the fact that the dialog items inside the dialog as well as the dialog itself must scale with each and every player's screen resolution.
After some searching on the forum I found Taldeen's further "Improved: Get Resolution"-library derived from desiderius1 work. Reference: http://www.sc2mapster.com/forums/development/triggers/40002-library-improved-get-resolution/
I figured that this is undoubtly the best method of dynamically scaling dialogs at the moment and here is where my true problem lies. It should be said that it is not the actual size of the dialog that has to be changed because I'm using Full-screen dialog. However, proportional distances between the dialog items inside the dialog is what needs to be fixed.
I need advice, what is the best thing to do?
Option 1: Try to implement the "Improved: Get Resolution"-library into my current, static dialog. Probably painstaking.
Option 2: Remake the whole Skill Tree basing the whole dialog from the example used by Taldeen.ยด While this may be the most secure and stable way, it will take A LOT of time.
Option 3: Your suggestion.
Furthermore, I was thinking about just scaling down the whole window and its proportions so that the window always would be small enough no matter the aspect ratio.
Would that work?
@Ice_bane: Go
If I recall correctly, Dialogs will actually scale to match the player's resolution. For example change SC2 to windowed mode, and drag the window edge to change the resolution, and it should scale correctly.
Mexa on the IRC gave me an answer in that direction:
"If you want to build it to fit all resolutions, then the aspect ratio must be 5:4"
"if you make it fit for 1025x820, then it will fit all other resolutions"
Thanks anyway for the respond! :)