terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ DrawFrame() [2/2]

static void GUIQuickActionButton.DrawFrame ( QuickActionButton_Layout layout,
Microsoft::Xna::Framework::Graphics::Texture2D buttonTexture,
Rectangle srcRect,
GUIQuickActionButton::InteractionState state,
float scale,
int itemType,
Microsoft::Xna::Framework::Graphics::Color itemColour )
inlinestatic

Definition at line 162 of file GUIQuickActionButton.cs.

163 {
164 if (!true)
165 {
166 }
167 float scale2 = layout.Scale;
168 float pressedScale = layout.PressedScale;
169 itemColour.A = (byte)scale2;
170 if (itemType == 0)
171 {
172 Texture_Layout backingDisabled = layout.BackingDisabled;
174 byte b = layout.DisabledIconColour.B;
175 byte r = layout.DisabledIconColour.R;
176 byte g = layout.DisabledIconColour.G;
178 return;
179 }
181 Texture_Layout backingNormal = layout.BackingNormal;
183 byte b2 = layout.IconColour.B;
184 byte r2 = layout.IconColour.R;
185 byte g2 = layout.IconColour.G;
187 if (texture2 != null)
188 {
189 return;
190 }
191 }
class f__AnonymousType0<< Count > j__TPar

References Microsoft.Xna.Framework.Graphics.Color.Color(), Microsoft.Xna.Framework.Graphics.Texture.Texture(), Microsoft.Xna.Framework.Graphics.Color.B, j__TPar, and UnityEngine.layout.