mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 08:59:07 +00:00
use the TINY WML #define to simplify game_config.cpp.
This also allow to more easily tune some values of [game_config]. Start doing this by recenter the logo in tiny-gui and prevent the menu to hide it.
This commit is contained in:
parent
02e3143e83
commit
a7dd95e6ab
@ -76,17 +76,28 @@
|
||||
victory_music="victory.ogg"
|
||||
defeat_music="defeat.ogg"
|
||||
|
||||
#ifdef TINY
|
||||
buttons_x=760
|
||||
buttons_y=330
|
||||
buttons_padding=4
|
||||
logo_x=160
|
||||
logo_y=40
|
||||
tip_x=100
|
||||
tip_y=500
|
||||
tip_width=495
|
||||
tip_padding=4
|
||||
#else
|
||||
buttons_x=760
|
||||
buttons_y=330
|
||||
buttons_padding=20
|
||||
tinygui_buttons_padding=4
|
||||
logo_x=292
|
||||
logo_y=120
|
||||
tip_x=100
|
||||
tip_y=500
|
||||
tip_width=495
|
||||
tip_padding=20
|
||||
tinygui_tip_padding=4
|
||||
#endif
|
||||
|
||||
lobby_refresh=2000
|
||||
|
||||
map_image="maps/wesnoth.png"
|
||||
|
@ -133,16 +133,12 @@ namespace game_config
|
||||
title_logo_y = atoi(v["logo_y"].c_str());
|
||||
title_buttons_x = atoi(v["buttons_x"].c_str());
|
||||
title_buttons_y = atoi(v["buttons_y"].c_str());
|
||||
title_buttons_padding = atoi(v["buttons_padding"].c_str());
|
||||
|
||||
title_tip_x = atoi(v["tip_x"].c_str());
|
||||
title_tip_width = atoi(v["tip_width"].c_str());
|
||||
|
||||
#ifdef USE_TINY_GUI
|
||||
title_tip_padding = atoi(v["tinygui_tip_padding"].c_str());
|
||||
title_buttons_padding = atoi(v["tinygui_buttons_padding"].c_str());
|
||||
#else
|
||||
title_tip_padding = atoi(v["tip_padding"].c_str());
|
||||
title_buttons_padding = atoi(v["buttons_padding"].c_str());
|
||||
#endif
|
||||
|
||||
|
||||
energy_image = v["energy_image"];
|
||||
moved_ball_image = v["moved_ball_image"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user