removing calls to map_mange_click (deprecated)

This commit is contained in:
Clément Le Bihan
2020-03-10 14:38:20 +01:00
5 changed files with 13 additions and 7 deletions
+8 -1
View File
@@ -242,7 +242,14 @@ add_executable(My3D
src/systems/game_manager_system.c
include/systems/game_manager_system.h
lib/gamacon/include/keybindings.h
lib/gamacon/src/components/map_interactions.c lib/gamacon/include/map_interactions.h)
lib/gamacon/src/components/map_interactions.c
lib/gamacon/include/map_interactions.h
lib/gamacon/include/keybindings.h
lib/gamacon/src/ui/tooltip.c
lib/gamacon/src/components/tooltip_component.c
lib/gamacon/include/components/tooltip_component.h
lib/gamacon/src/systems/tooltip_system.c
)
add_compile_options(-W -Wall -Wextra -Wshadow)
+1 -1
View File
@@ -12,7 +12,7 @@ char *my_str_replace(char *str, const char *to_replace, char c)
while ((p = my_strstr(str, to_replace))) {
*p = c;
p++;
for (char *ptr = p + len; *ptr; ptr++, p++)
for (char *ptr = p + len - 1; *ptr; ptr++, p++)
*p = *ptr;
*p = '\0';
}
+3 -3
View File
@@ -42,11 +42,11 @@
<panel src="panel" x="50%" y="98%" width="120%" height="4%"/>
<panel src="happiness" x="3%" y="98%" width="%" height="3%"/>
<text text="100%" x="6%" y="98%" size="13">
<text text="100%" x="6%" y="98%" size="13" tooltip="The level of happiness of your students.\n" padding_x="17">
<game_display stats="happiness" />
</text>
<panel src="clown" x="10%" y="98%" width="%" height="3%"/>
<text text="100%" x="13%" y="98%" size="13">
<panel src="clown" x="10%" y="98%" width="%" height="3%" />
<text text="100%" x="13%" y="98%" size="13" tooltip="The level of stupidity of your students.\nThey start doing stupid things if you'are too kind with them.\n\nYou will loose if this stat reach 100%" padding_x="17">
<game_display stats="stupidity" />
</text>
</gc_entities>
-1
View File
@@ -29,7 +29,6 @@ int register_customcmps(gc_engine *engine)
engine->add_callback(engine, "options", &options);
engine->add_callback(engine, "goto_main_menu", &goto_main_menu);
engine->add_callback(engine, "quit", &quit);
engine->add_callback(engine, "map_manage_click", &map_manage_click);
engine->add_callback(engine, "fullscreen", &fullscreen);
engine->add_callback(engine, "resolution_down", &resolution_down);
engine->add_callback(engine, "resolution_up", &resolution_up);