mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 17:46:18 +00:00
CHANGED: #1471 Implemented property querying for CGroupModal.
This commit is contained in:
parent
413f91c70a
commit
1105f0e3d3
3 changed files with 143 additions and 0 deletions
|
@ -53,6 +53,8 @@ namespace NLGUI
|
|||
/// Constructor
|
||||
CGroupModal(const TCtorParam ¶m);
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
|
||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||
virtual void updateCoords ();
|
||||
void setBaseX(sint32 x) { _MouseDeltaX = x;}
|
||||
|
|
|
@ -46,6 +46,75 @@ namespace NLGUI
|
|||
}
|
||||
|
||||
|
||||
std::string CGroupModal::getProperty( const std::string &name ) const
|
||||
{
|
||||
if( name == "mouse_pos" )
|
||||
{
|
||||
return NLMISC::toString( SpawnOnMousePos );
|
||||
}
|
||||
else
|
||||
if( name == "exit_click_out" )
|
||||
{
|
||||
return NLMISC::toString( ExitClickOut );
|
||||
}
|
||||
else
|
||||
if( name == "exit_click_l" )
|
||||
{
|
||||
return NLMISC::toString( ExitClickL );
|
||||
}
|
||||
else
|
||||
if( name == "exit_click_r" )
|
||||
{
|
||||
return NLMISC::toString( ExitClickR );
|
||||
}
|
||||
else
|
||||
if( name == "exit_click_b" )
|
||||
{
|
||||
if( ExitClickL == ExitClickR )
|
||||
return NLMISC::toString( ExitClickL );
|
||||
else
|
||||
return "false";
|
||||
}
|
||||
else
|
||||
if( name == "force_inside_screen" )
|
||||
{
|
||||
return NLMISC::toString( ForceInsideScreen );
|
||||
}
|
||||
else
|
||||
if( name == "category" )
|
||||
{
|
||||
return Category;
|
||||
}
|
||||
else
|
||||
if( name == "onclick_out" )
|
||||
{
|
||||
return OnClickOut;
|
||||
}
|
||||
else
|
||||
if( name == "onclick_out_params" )
|
||||
{
|
||||
return OnClickOutParams;
|
||||
}
|
||||
else
|
||||
if( name == "onpostclick_out" )
|
||||
{
|
||||
return OnPostClickOut;
|
||||
}
|
||||
else
|
||||
if( name == "onpostclick_out_params" )
|
||||
{
|
||||
return OnPostClickOutParams;
|
||||
}
|
||||
else
|
||||
if( name == "exit_key_pushed" )
|
||||
{
|
||||
return NLMISC::toString( ExitKeyPushed );
|
||||
}
|
||||
else
|
||||
return CGroupFrame::getProperty( name );
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
bool CGroupModal::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
<widget>
|
||||
<header>
|
||||
<name>GroupModal</name>
|
||||
<guiname>CGroupModal</guiname>
|
||||
<ancestor>GroupFrame</ancestor>
|
||||
<description></description>
|
||||
<abstract>false</abstract>
|
||||
<icon></icon>
|
||||
</header>
|
||||
<properties>
|
||||
<property>
|
||||
<name>mouse_pos</name>
|
||||
<type>bool</type>
|
||||
<default>true</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>exit_click_out</name>
|
||||
<type>bool</type>
|
||||
<default>true</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>exit_click_l</name>
|
||||
<type>bool</type>
|
||||
<default>false</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>exit_click_r</name>
|
||||
<type>bool</type>
|
||||
<default>false</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>exit_click_b</name>
|
||||
<type>bool</type>
|
||||
<default>false</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>force_inside_screen</name>
|
||||
<type>bool</type>
|
||||
<default>false</default>
|
||||
</property>
|
||||
<property>
|
||||
<name>category</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onclick_out</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onclick_out_params</name>
|
||||
<type></type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onpostclick_out</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onpostclick_out_params</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>exit_key_pushed</name>
|
||||
<type>bool</type>
|
||||
<default>false</default>
|
||||
</property>
|
||||
</properties>
|
||||
</widget>
|
Loading…
Reference in a new issue