You should think about decreasing the area of the visible world. Not just by covering it with more and more dialogs, but by changing the area your graphics card renders.
The left side of the rendered arera on your screen starts at the "start" position which can either be Min (left), Mid (middle) or Max (right) with x as offset to the right.
The right side of the rendered area on your screen starts at the "start" position wich can either be Min (left), Mid (middle) or Max (right) with x as offset to the right.
Pros:
Smaller rendered area equals lower load on your graphics card equals higher quality graphics possible without lag.
The camera focus point is always in the center of the rendered area. Without this method, if a big part of the screen is hidden by dialogs (let's say 1/4 on the left side) and you focus your camera on a unit (with ctrl + shift + f for example) you see 2 times as far on the right side, than on the left (1/4 of the screen on the left, 2/4 on the right).
QA:
Q: So, are you really sure this is safe?
A: Well, actually, I just copied it from blizzard. If you do not disable the normal interface, ConsoleWorldBottomOffset is set to 200.
Q: Cliff shadows disappear somtimes, what did I do wrong?
A: Nothing, shadows are only rendered for visible objects. Just make the visible world stretch 50 further under your UI/past the edge of the screen.
The example does not use any dialogs/dialog items to hide the left side of the screen, it simply isn't rendered.
The XML ui editing is so cool. I'm experimenting with it right now too. I remember i thought it's impossible to set custom command/inventory tooltips for randomized items/abilities in default UI. Now i've just figured that it's possible to create "Random Ability Drop" system like N-P!! And set convinient hotkeys for items/abilities. rly good stuff.
Your map has a cool UI?
It covers a lot of the screen?
You should think about decreasing the area of the visible world. Not just by covering it with more and more dialogs, but by changing the area your graphics card renders.
How to do that? Simple:
Now, what does that code do?
Pros:
QA:
Q: So, are you really sure this is safe?
A: Well, actually, I just copied it from blizzard. If you do not disable the normal interface, ConsoleWorldBottomOffset is set to 200.
Q: Cliff shadows disappear somtimes, what did I do wrong?
A: Nothing, shadows are only rendered for visible objects. Just make the visible world stretch 50 further under your UI/past the edge of the screen.
The example does not use any dialogs/dialog items to hide the left side of the screen, it simply isn't rendered.
@Arkless: Go
This is a cool idea and a solid tutorial. This is something I was unaware was possible.
The XML ui editing is so cool. I'm experimenting with it right now too. I remember i thought it's impossible to set custom command/inventory tooltips for randomized items/abilities in default UI. Now i've just figured that it's possible to create "Random Ability Drop" system like N-P!! And set convinient hotkeys for items/abilities. rly good stuff.
@Arkless: Go
You have an error in code. Right one is:
In any case it does not work. I am getting error: UI: Cannot create [GameUI/WorldPanel] because frames of type [WorldPanel] marked as Blizzard only.
http://www.youtube.com/user/RussianMapster