Skip to content

Commit 63863cc

Browse files
committed
Fixed promo text.
1 parent 7f2cb1f commit 63863cc

File tree

10 files changed

+20
-28
lines changed

10 files changed

+20
-28
lines changed
Binary file not shown.

AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/background.bmp.meta

Lines changed: 4 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/swap.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/swap1.bmp.meta renamed to AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/swap/pawujl9s.bmp.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/swap2.bmp.meta renamed to AdvancedInstanceManager/Promotion/Resources/InstanceManager/Promotion/swap/ppfkkbih.bmp.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.

AdvancedInstanceManager/System/Editor/MainView.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,15 @@ void DrawPromo(Rect position, float height)
262262
promoBackground = Resources.Load<Texture2D>("InstanceManager/Promotion/background");
263263

264264
if (promoSwaps == null)
265-
promoSwaps = Resources.LoadAll<Texture2D>("InstanceManager/Promotion").Where(t => t.name.StartsWith("swap")).ToArray();
265+
promoSwaps = Resources.LoadAll<Texture2D>("InstanceManager/Promotion/swap");
266266

267267
var r3 = new Rect(position);
268-
r3.yMin -= 2;
268+
r3.yMin -= 6;
269269
r3.xMin -= 6;
270-
r3.xMax -= 0;
271-
r3.yMax += 0;
272-
r3.width = promoBackground.width * 0.55f;
273-
r3.height = promoBackground.height * 0.55f;
274-
GUI.DrawTexture(r3, promoBackground, ScaleMode.StretchToFill);
275-
GUI.DrawTexture(Rect.MinMaxRect(r3.width * 0.21f, r3.yMin, r3.xMax - (r3.width * 0.45f), r3.yMax), promoSwaps[promoSwap], ScaleMode.StretchToFill);
276-
277-
//Debug.Log(r3);
270+
r3.width = promoBackground.width;
271+
r3.height = promoBackground.height - 22;
272+
GUI.DrawTexture(r3, promoBackground);
273+
GUI.DrawTexture(r3, promoSwaps[promoSwap]);
278274

279275
EditorGUIUtility.AddCursorRect(r3, MouseCursor.Link);
280276

0 commit comments

Comments
 (0)