All pastes #2038878 Raw Edit

Someone

public cpp v1 · immutable
#2038878 ·published 2011-01-05 17:20 UTC
rendered paste body
Index: src/client/gui/pawsconfigcamera.cpp===================================================================--- src/client/gui/pawsconfigcamera.cpp	(Revision 6705)+++ src/client/gui/pawsconfigcamera.cpp	(Arbeitskopie)@@ -97,14 +97,14 @@     */     if (!LoadFromFile("configcamera.xml"))         return false;-        +     tree = dynamic_cast<pawsTree *>(children[0]);     tree->SetRelativeFrameSize(parent->ScreenFrame().Width()-20, parent->ScreenFrame().Height()-20);      root = tree->GetRoot();     if (root != NULL)         CreateTreeWidgets(root);-        +     tree->SetScrollBars(false,true);      return true;@@ -144,12 +144,12 @@              button = new pawsButton();             button->SetNotify(this);-            button->SetUpImage("radiooff");-            button->SetDownImage("radioon");+            button->SetUpImage("Checkbox Off");+            button->SetDownImage("Checkbox On");             button->SetToggle(true);             button->Show();             button->SetState(GetCameraSetting(subtreeRoot->GetName(), currCamMode) > 0.0f);-            button->SetRelativeFrame( (int)labelWidth+5, 0, 20, 20 );+            button->SetRelativeFrame( (int)labelWidth+5, 0, 16, 16 );             rootAsSeq->AddSeqWidget(button);         }         else if (!strcmp(subtreeRoot->GetAttr("type"), "real"))Index: src/client/gui/pawsconfigmouse.cpp===================================================================--- src/client/gui/pawsconfigmouse.cpp	(Revision 6705)+++ src/client/gui/pawsconfigmouse.cpp	(Arbeitskopie)@@ -195,7 +195,7 @@             button->SetSize(30, 20);             button->SetUpImage("Standard Button");             button->SetDownImage("Standard Button Down");-            button->SetText("set");+            button->SetText("Set");             button->SetToggle(false);             button->Show();             button->SetRelativeFrame( GetActualWidth(COMMAND_WIDTH)+GetActualWidth(TRIGGER_WIDTH)+5, 0, 30, 20 );@@ -213,12 +213,11 @@              button = new pawsButton();             button->SetNotify(this);-            button->SetSize(20, 20);-            button->SetUpImage("radiooff");-            button->SetDownImage("radioon");+            button->SetUpImage("Checkbox Off");+            button->SetDownImage("Checkbox On");             button->SetToggle(true);             button->Show();-            button->SetRelativeFrame( GetActualWidth(COMMAND_WIDTH)+5, 0, 20, 20 );+            button->SetRelativeFrame( GetActualWidth(COMMAND_WIDTH)+30, 0, 16, 16 );             rootAsSeq->AddSeqWidget(button);         }         else if (!strcmp(subtreeRoot->GetAttr("type"), "natnum"))