mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
FormSpec: Add StaticTextSpec and superimpose over item image buttons
This commit is contained in:
parent
eb3840a3f8
commit
baa7c8f8ad
2 changed files with 32 additions and 1 deletions
|
@ -228,6 +228,20 @@ class GUIFormSpecMenu : public GUIModalMenu
|
|||
irr::video::SColor color;
|
||||
};
|
||||
|
||||
struct StaticTextSpec {
|
||||
StaticTextSpec()
|
||||
{
|
||||
}
|
||||
StaticTextSpec(const std::wstring &a_text,
|
||||
const core::rect<s32> &a_rect):
|
||||
text(a_text),
|
||||
rect(a_rect)
|
||||
{
|
||||
}
|
||||
std::wstring text;
|
||||
core::rect<s32> rect;
|
||||
};
|
||||
|
||||
public:
|
||||
GUIFormSpecMenu(irr::IrrlichtDevice* dev,
|
||||
gui::IGUIElement* parent, s32 id,
|
||||
|
@ -339,6 +353,7 @@ protected:
|
|||
std::vector<ImageDrawSpec> m_itemimages;
|
||||
std::vector<BoxDrawSpec> m_boxes;
|
||||
std::vector<FieldSpec> m_fields;
|
||||
std::vector<StaticTextSpec> m_static_texts;
|
||||
std::vector<std::pair<FieldSpec,GUITable*> > m_tables;
|
||||
std::vector<std::pair<FieldSpec,gui::IGUICheckBox*> > m_checkboxes;
|
||||
std::map<std::string, TooltipSpec> m_tooltips;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue