All pastes #1050615 Raw Edit

Patch FS#1336

public diff v1 · immutable
#1050615 ·published 2008-06-18 22:36 UTC
rendered paste body
Index: /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.h===================================================================--- /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.h	(révision 1776)+++ /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.h	(copie de travail)@@ -37,6 +37,7 @@     virtual ~pawsDetailWindow();      bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );+    bool SelectTab( pawsWidget* widget );      bool PostSetup();     bool FillInfo();Index: /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.cpp===================================================================--- /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.cpp	(révision 1776)+++ /home/thierry/Documents/planesShift/head/planeshift-base/planeshift/src/client/gui/pawsdetailwindow.cpp	(copie de travail)@@ -181,6 +181,7 @@                     skills[cat].Append(msg.skills[s].text);                 }             }+            SelectTab((pawsWidget*)lastTab);         }         this->Show();         return;@@ -189,6 +190,12 @@  bool pawsDetailWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget ) {       +    return SelectTab(widget);+}+++bool pawsDetailWindow::SelectTab( pawsWidget* widget ){+     switch ( widget->GetID() )     {     case BTN_STATS:@@ -231,3 +238,19 @@     }     return false; }+++/*++            if(button){+                button->Show();+                if(button == lastTab)+                {+                    button->SetState(true);+                }+                else+                {+                    button->SetState(false);+                }+            }+*/