@@ -99,7 +99,7 @@ bool GuiTheme::loadTheme(const string& name, const string& resource_name)
9999 else
100100 global_style.color = {255 , 255 , 255 , 255 };
101101 global_style.font = getFont (input[" font" ]);
102- global_style.offset = input[" offset " ].toFloat ();
102+ global_style.font_offset = input[" font_offset " ].toFloat ();
103103 global_style.size = input[" size" ].toFloat ();
104104 global_style.sound = input[" sound" ];
105105 for (unsigned int n=0 ; n<int (GuiElement::State::COUNT); n++)
@@ -130,8 +130,8 @@ bool GuiTheme::loadTheme(const string& name, const string& resource_name)
130130 style.states [n].color = toColor (input[" color." + postfix]);
131131 if (input.find (" font." + postfix) != input.end ())
132132 style.states [n].font = getFont (input[" font." + postfix]);
133- if (input.find (" offset ." + postfix) != input.end ())
134- style.states [n].offset = input[" font ." + postfix].toFloat ();
133+ if (input.find (" font_offset ." + postfix) != input.end ())
134+ style.states [n].font_offset = input[" font_offset ." + postfix].toFloat ();
135135 if (input.find (" size." + postfix) != input.end ())
136136 style.states [n].size = input[" size." + postfix].toFloat ();
137137 if (input.find (" sound." + postfix) != input.end ())
@@ -155,7 +155,7 @@ GuiTheme::GuiTheme(const string& name)
155155 std::vector<string> fonts = findResources (" gui/fonts/*.ttf" );
156156 if (fonts.size () > 0 )
157157 fallback_state.font = getFont (fonts[0 ]);
158- fallback_state.offset = 0 .0f ;
158+ fallback_state.font_offset = 0 .0f ;
159159 fallback_state.texture = " " ;
160160 GuiThemeStyle fallback;
161161 for (unsigned int n=0 ; n<int (GuiElement::State::COUNT); n++)
0 commit comments