Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/client/gui/pawsspellbookwindow.cpp
- ===================================================================
- --- src/client/gui/pawsspellbookwindow.cpp (Revision 6757)
- +++ src/client/gui/pawsspellbookwindow.cpp (Arbeitskopie)
- @@ -97,6 +97,11 @@
- ShowActiveMagic();
- return true;
- }
- + else if (!strcmp(widget->GetName(),"QuickSpell"))
- + {
- + ShowQuickSpell();
- + return true;
- + }
- return true;
- }
- @@ -166,6 +171,15 @@
- widget->Show();
- }
- +void pawsSpellBookWindow::ShowQuickSpell()
- +{
- + pawsWidget* widget = PawsManager::GetSingleton().FindWidget( "HotBar" );
- + if ( widget->IsVisible() )
- + widget->Hide();
- + else
- + widget->Show();
- +}
- +
- void pawsSpellBookWindow::Show()
- {
- pawsControlledWindow::Show();
- Index: src/client/gui/pawsspellbookwindow.h
- ===================================================================
- --- src/client/gui/pawsspellbookwindow.h (Revision 6757)
- +++ src/client/gui/pawsspellbookwindow.h (Arbeitskopie)
- @@ -52,6 +52,7 @@
- void CreateNewSpell();
- void Cast();
- void ShowActiveMagic();
- + void ShowQuickSpell();
- void Close();
- Index: data/gui/spellwindow.xml
- ===================================================================
- --- data/gui/spellwindow.xml (Revision 6757)
- +++ data/gui/spellwindow.xml (Arbeitskopie)
- @@ -1,12 +1,10 @@
- <widget_description>
- -<widget name="SpellBookWindow" factory="pawsSpellBookWindow" visible="no" savepositions="yes" movable="yes" resizable="no"
- - configurable="yes" style="New Standard GUI">
- +<widget name="SpellBookWindow" factory="pawsSpellBookWindow" visible="no" savepositions="yes" movable="yes" resizable="no" configurable="yes" style="New Standard GUI">
- <frame x="100" y="100" width="600" height="350" border="yes" />
- <title resource="Scaling Title Bar" text="Spell Book" align="left" close_button="yes"/>
- -
- <widget name="Combine" factory="pawsButton" id="100" tooltip="Research Magic" >
- <frame x="530" y="280" width="48" height="48" />
- <bgimage resource="Glyph Magic" />
- @@ -15,6 +13,11 @@
- <widget name="Cast" factory="pawsButton" id="101" tooltip="Cast">
- <frame x="470" y="25" width="48" height="48" />
- <bgimage resource="Cast Magic" />
- + </widget>
- +
- + <widget name="QuickSpell" factory="pawsButton" id="103" tooltip="Quick Spells">
- + <frame x="530" y="25" width="48" height="48" />
- + <bgimage resource="ActiveMagicButton" />
- </widget>
- <widget name="ActiveMagic" factory="pawsButton" id="102" tooltip="Active Spells">
- @@ -42,20 +45,20 @@
- <widget name="Glyph" factory="pawsWidget">
- </widget>
- </column>
- - <column width="35" sortable="false" >
- + <column width="31" sortable="false" >
- <widget name="" factory="pawsWidget"></widget>
- </column>
- - <column width="35" sortable="false" >
- + <column width="31" sortable="false" >
- <widget name="" factory="pawsWidget"></widget>
- </column>
- - <column width="35" sortable="false" >
- + <column width="31" sortable="false" >
- <widget name="" factory="pawsWidget"></widget>
- </column>
- - <column width="47" >
- + <column width="49" >
- <widget name="Way" factory="pawsTextBox">
- </widget>
- </column>
- - <column width="45" >
- + <column width="55" >
- <widget name="Realm" factory="pawsTextBox">
- <frame x="15" y="0" width="20" height="25"/>
- </widget>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement