Finishing tooltips

This commit is contained in:
AnonymusRaccoon
2020-03-10 14:14:11 +01:00
parent 8b1a3b2ab0
commit b8d46f208c
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ add_executable(My3D
src/systems/game_manager_system.c
include/systems/game_manager_system.h
lib/gamacon/include/keybindings.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>