Advertisement
Guest User

Untitled

a guest
Jan 13th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. Index: src/client/gui/pawsspellbookwindow.cpp
  2. ===================================================================
  3. --- src/client/gui/pawsspellbookwindow.cpp (Revision 6757)
  4. +++ src/client/gui/pawsspellbookwindow.cpp (Arbeitskopie)
  5. @@ -97,6 +97,11 @@
  6. ShowActiveMagic();
  7. return true;
  8. }
  9. + else if (!strcmp(widget->GetName(),"QuickSpell"))
  10. + {
  11. + ShowQuickSpell();
  12. + return true;
  13. + }
  14. return true;
  15. }
  16.  
  17. @@ -166,6 +171,15 @@
  18. widget->Show();
  19. }
  20.  
  21. +void pawsSpellBookWindow::ShowQuickSpell()
  22. +{
  23. + pawsWidget* widget = PawsManager::GetSingleton().FindWidget( "HotBar" );
  24. + if ( widget->IsVisible() )
  25. + widget->Hide();
  26. + else
  27. + widget->Show();
  28. +}
  29. +
  30. void pawsSpellBookWindow::Show()
  31. {
  32. pawsControlledWindow::Show();
  33. Index: src/client/gui/pawsspellbookwindow.h
  34. ===================================================================
  35. --- src/client/gui/pawsspellbookwindow.h (Revision 6757)
  36. +++ src/client/gui/pawsspellbookwindow.h (Arbeitskopie)
  37. @@ -52,6 +52,7 @@
  38. void CreateNewSpell();
  39. void Cast();
  40. void ShowActiveMagic();
  41. + void ShowQuickSpell();
  42.  
  43. void Close();
  44.  
  45. Index: data/gui/spellwindow.xml
  46. ===================================================================
  47. --- data/gui/spellwindow.xml (Revision 6757)
  48. +++ data/gui/spellwindow.xml (Arbeitskopie)
  49. @@ -1,12 +1,10 @@
  50. <widget_description>
  51.  
  52. -<widget name="SpellBookWindow" factory="pawsSpellBookWindow" visible="no" savepositions="yes" movable="yes" resizable="no"
  53. - configurable="yes" style="New Standard GUI">
  54. +<widget name="SpellBookWindow" factory="pawsSpellBookWindow" visible="no" savepositions="yes" movable="yes" resizable="no" configurable="yes" style="New Standard GUI">
  55.  
  56. <frame x="100" y="100" width="600" height="350" border="yes" />
  57. <title resource="Scaling Title Bar" text="Spell Book" align="left" close_button="yes"/>
  58.  
  59. -
  60. <widget name="Combine" factory="pawsButton" id="100" tooltip="Research Magic" >
  61. <frame x="530" y="280" width="48" height="48" />
  62. <bgimage resource="Glyph Magic" />
  63. @@ -15,6 +13,11 @@
  64. <widget name="Cast" factory="pawsButton" id="101" tooltip="Cast">
  65. <frame x="470" y="25" width="48" height="48" />
  66. <bgimage resource="Cast Magic" />
  67. + </widget>
  68. +
  69. + <widget name="QuickSpell" factory="pawsButton" id="103" tooltip="Quick Spells">
  70. + <frame x="530" y="25" width="48" height="48" />
  71. + <bgimage resource="ActiveMagicButton" />
  72. </widget>
  73.  
  74. <widget name="ActiveMagic" factory="pawsButton" id="102" tooltip="Active Spells">
  75. @@ -42,20 +45,20 @@
  76. <widget name="Glyph" factory="pawsWidget">
  77. </widget>
  78. </column>
  79. - <column width="35" sortable="false" >
  80. + <column width="31" sortable="false" >
  81. <widget name="" factory="pawsWidget"></widget>
  82. </column>
  83. - <column width="35" sortable="false" >
  84. + <column width="31" sortable="false" >
  85. <widget name="" factory="pawsWidget"></widget>
  86. </column>
  87. - <column width="35" sortable="false" >
  88. + <column width="31" sortable="false" >
  89. <widget name="" factory="pawsWidget"></widget>
  90. </column>
  91. - <column width="47" >
  92. + <column width="49" >
  93. <widget name="Way" factory="pawsTextBox">
  94. </widget>
  95. </column>
  96. - <column width="45" >
  97. + <column width="55" >
  98. <widget name="Realm" factory="pawsTextBox">
  99. <frame x="15" y="0" width="20" height="25"/>
  100. </widget>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement