mirror of
https://github.com/zoriya/My3D.git
synced 2026-06-01 18:16:40 +00:00
Finishing tooltips
This commit is contained in:
+1
-1
@@ -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
Submodule lib/gamacon updated: 6b34b49a05...07940fd718
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user