@@ -18,7 +18,7 @@ namespace cage
1818 struct CAGE_ENGINE_API GuiSkinIndex
1919 {
2020 constexpr GuiSkinIndex () = default;
21- constexpr explicit GuiSkinIndex (uint32 index) : index(index){};
21+ constexpr explicit GuiSkinIndex (uint32 index) : index(index) {};
2222
2323 uint32 index = m; // -1 = inherit
2424 };
@@ -235,7 +235,7 @@ namespace cage
235235 {
236236 Real f;
237237 sint32 i = 0 ;
238- Union (){};
238+ Union () {};
239239 } min, max, step;
240240 uint32 cursor = m; // utf32 characters (not bytes)
241241 InputTypeEnum type = InputTypeEnum::Text;
@@ -326,17 +326,10 @@ namespace cage
326326 CAGE_ENGINE_API void guiDestroyChildrenRecursively (Entity *e);
327327 CAGE_ENGINE_API void guiDestroyEntityRecursively (Entity *e);
328328
329- template <StringLiteral Text>
329+ template <uint32 TextId, StringLiteral Text = " " >
330330 GuiTooltipComponent::TooltipCallback guiTooltipText ()
331331 {
332- static constexpr GuiTextComponent txt{ Text.value , 0 };
333- return privat::guiTooltipText (&txt);
334- }
335-
336- template <uint32 TextId>
337- GuiTooltipComponent::TooltipCallback guiTooltipText ()
338- {
339- static constexpr GuiTextComponent txt{ " " , TextId };
332+ static constexpr GuiTextComponent txt{ Text.value , TextId };
340333 return privat::guiTooltipText (&txt);
341334 }
342335 }
0 commit comments