diff GUIButton.cpp @ 1296:c423f946dc99

moving files continue
author Ritor1
date Tue, 18 Jun 2013 17:28:11 +0600
parents 86a83e12d795
children 5450af4f57ef
line wrap: on
line diff
--- a/GUIButton.cpp	Mon Jun 17 17:34:01 2013 +0600
+++ b/GUIButton.cpp	Tue Jun 18 17:28:11 2013 +0600
@@ -1,7 +1,8 @@
 #include "GUIWindow.h"
 #include "GUIFont.h"
 
-
+#include "mm7_data.h"
+#include "LOD.h"
 
 
 
@@ -179,4 +180,67 @@
 void CreateButtonInColumn( int column_pos, unsigned int control_id )
 {
      pDialogueWindow->CreateButton( 480, 30 * column_pos + 146, 140, 30,  1,  0, UIMSG_SelectShopDialogueOption,  control_id,  0,   "",   0);
+}
+//----- (00419379) --------------------------------------------------------
+void __cdecl sub_419379()
+{
+  GUIButton *pButton; // esi@2
+
+  if ( dword_507CBC )
+  {
+    dword_507CBC = 0;
+	ptr_507BA4->Release();
+    pBtn_Up->Release();
+    pBtn_Down->Release();
+    pBtn_Down = 0;
+    pBtn_Up = 0;
+    for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
+    {
+      if ( pButton->msg == UIMSG_InventoryLeftClick )
+      {
+        pButton->uX = dword_50698C_uX;
+        pButton->uY = dword_506988_uY;
+        pButton->uZ = dword_506984_uZ;
+        pButton->uW = dword_506980_uW;
+        pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0);
+      }
+    }
+  }
+}
+//----- (00419220) --------------------------------------------------------
+void __cdecl sub_419220()
+{
+  GUIButton *i; // eax@2
+
+  if ( !dword_507CBC )
+  {
+    dword_507CBC = 1;
+    for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext )
+    {
+      if ( i->msg == UIMSG_InventoryLeftClick )
+      {
+        dword_50698C_uX = i->uX;
+        dword_506988_uY = i->uY;
+        dword_506984_uZ = i->uZ;
+        dword_506980_uW = i->uW;
+        i->uW = 0;
+        i->uZ = 0;
+        i->uY = 0;
+        i->uX = 0;
+      }
+    }
+    pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46,
+                   pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth,
+                   pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight,
+                   1, 0, UIMSG_ClickAwardsUpBtn, 0, 0, "",
+                   pIcons_LOD->GetTexture(uTextureID_ar_up_up),
+                   pIcons_LOD->GetTexture(uTextureID_ar_up_dn), 0);
+    pBtn_Down = pGUIWindow_CurrentMenu->CreateButton(438, 292,
+                   pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureWidth,
+                   pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureHeight,
+                   1, 0, UIMSG_ClickAwardsDownBtn, 0, 0, "",
+                   pIcons_LOD->GetTexture(uTextureID_ar_dn_up),
+                   pIcons_LOD->GetTexture(uTextureID_ar_dn_dn), 0);
+    ptr_507BA4 = pGUIWindow_CurrentMenu->CreateButton(440, 62, 16, 232, 1, 0, UIMSG_ClickAwardScrollBar, 0, 0, "", 0);
+  }
 }
\ No newline at end of file