Add 2 new game_config keys "hex_brightening" and "hex_semi_brightening"
allowing easier experiment with these values, including disable the effect
This commit is contained in:
parent
d0619e37bb
commit
f44f8037fa
4 changed files with 14 additions and 4 deletions
|
@ -80,6 +80,9 @@
|
|||
hp_bar_scaling=0.6
|
||||
xp_bar_scaling=0.5
|
||||
|
||||
hex_brightening=1.5
|
||||
hex_semi_brightening=1.25
|
||||
|
||||
flag_image="flags/flag-1.png:150,flags/flag-2.png:150,flags/flag-3.png:150,flags/flag-4.png:150"
|
||||
flag_icon_image="flags/flag-icon.png"
|
||||
flag_rgb=flag_green
|
||||
|
|
|
@ -82,6 +82,9 @@ namespace game_config
|
|||
double hp_bar_scaling = 0.666;
|
||||
double xp_bar_scaling = 0.5;
|
||||
|
||||
double hex_brightening = 1.5;
|
||||
double hex_semi_brightening = 1.25;
|
||||
|
||||
std::vector<std::string> foot_speed_prefix;
|
||||
std::string foot_teleport_enter = "footsteps/teleport-in.png";
|
||||
std::string foot_teleport_exit = "footsteps/teleport-out.png";
|
||||
|
@ -189,8 +192,10 @@ namespace game_config
|
|||
flag_image = v["flag_image"].str();
|
||||
flag_icon_image = v["flag_icon_image"].str();
|
||||
|
||||
hp_bar_scaling = v["hp_bar_scaling"].to_double();
|
||||
xp_bar_scaling = v["xp_bar_scaling"].to_double();
|
||||
hp_bar_scaling = v["hp_bar_scaling"].to_double(0.666);
|
||||
xp_bar_scaling = v["xp_bar_scaling"].to_double(0.5);
|
||||
hex_brightening = v["hex_brightening"].to_double(1.5);
|
||||
hex_semi_brightening = v["hex_semi_brightening"].to_double(1.25);
|
||||
|
||||
foot_speed_prefix = utils::split(v["footprint_prefix"]);
|
||||
foot_teleport_enter = v["footprint_teleport_enter"].str();
|
||||
|
|
|
@ -77,6 +77,8 @@ namespace game_config
|
|||
ellipsis_image, default_victory_music, default_defeat_music;
|
||||
|
||||
extern double hp_bar_scaling, xp_bar_scaling;
|
||||
extern double hex_brightening;
|
||||
extern double hex_semi_brightening;
|
||||
|
||||
extern std::string flag_rgb;
|
||||
extern std::vector<Uint32> red_green_scale;
|
||||
|
|
|
@ -976,13 +976,13 @@ static surface get_scaled_to_zoom(const locator& i_locator)
|
|||
static surface get_brightened(const locator& i_locator)
|
||||
{
|
||||
surface image(get_image(i_locator, SCALED_TO_HEX));
|
||||
return surface(brighten_image(image, ftofxp(1.5)));
|
||||
return surface(brighten_image(image, ftofxp(game_config::hex_brightening)));
|
||||
}
|
||||
|
||||
static surface get_semi_brightened(const locator& i_locator)
|
||||
{
|
||||
surface image(get_image(i_locator, SCALED_TO_HEX));
|
||||
return surface(brighten_image(image, ftofxp(1.25)));
|
||||
return surface(brighten_image(image, ftofxp(game_config::hex_semi_brightening)));
|
||||
}
|
||||
|
||||
surface get_image(const image::locator& i_locator, TYPE type)
|
||||
|
|
Loading…
Add table
Reference in a new issue