Hi all,
So spent the day creating Menus Screens for standalone build, and have a few questions\observations.
1)
For all scripts employed for the Loading screens and In-Game menus, every single variable is Global.
- my first question is why - is there a reason for it?
- I thought globals were bad practice unless required. Have I got this wrong....
2)
For the In-Game menus I wanted to have a shade behind the menu items.
To do that I added code to:
- GameMenu
- Graphics
- Sounds
- LoadGame
- SaveGame
Example in GameMenu
--// my vars
local img_shade = 0
local spr_shade = 0
--//
function gamemenu_init()
--shade for in-game menu backdrop
img_shade = LoadImage("titlesbank\\" .. g_strStyleFolder .. "\\shade.png") -- 512x512 png
spr_shade = CreateSprite ( img_shade )
SetSpritePosition ( spr_shade, 0, 0 )
SetSpriteSize ( spr_shade, 100, 100 )
--\\\\\
end
function gamemenu_free()
DeleteSprite ( img_shade )
DeleteSprite ( spr_shade )
end
Now this works fine for all the In-Game Menus
except LoadGame and SaveGame.
The shade does not show up.
What am I missing.......?
3)
The LoadGame screen in the Start Menu, and the LoadGame on the In-Game menu are using the same script.
This is counter productive to customizing the look of the game menus.
I think they should be separate items.
4)
Preparing core files....
Anyone know where we can edit this?
5)
On a side-note there are quite a few images that are not used as far as I can see...
EDIT: OOPS meant to be in scripting I guess - calling a mod
OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.