Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FIX FIX FIX!

  • Loading branch information...
commit d71b8ce55c871a524d8e18f7256b86d175c051c7 1 parent ae16739
authored

Showing 1 changed file with 41 additions and 24 deletions. Show diff stats Hide diff stats

  1. 65  layout.lua
65  layout.lua
@@ -30,88 +30,105 @@ local cargoShip = LibStub("LibCargoShip-2.1")
30 30
 
31 31
 --[[ BOTTOM LEFT ]]--
32 32
 
  33
+local LPx, LPy = 50, 10
  34
+
33 35
 local durability = cargoShip{
34 36
     name = "Durability",
35  
-	scale = 1.2
  37
+	scale = 1.2,
  38
+	width = 70,
36 39
 }
37  
-durability:SetPoint("BOTTOMLEFT",30,5)
  40
+durability:SetPoint("CENTER", UIParent, "BOTTOMLEFT", LPx, LPy)
38 41
 
39 42
 local money = cargoShip{
40 43
 	name = "|cFFFFB366Ara|r Money",
41 44
 	parent = durability,
  45
+	width = 70
42 46
 }
43  
-money:SetPoint("RIGHT",82, 0)
  47
+money:SetPoint("CENTER", UIParent, "BOTTOMLEFT", LPx+80, LPy)
44 48
 
45 49
 local friends = cargoShip{
46 50
 	name = "|cFFFFB366Ara|r Friends",
47 51
 	parent = money,
  52
+	width = 15
48 53
 }
49  
-friends:SetPoint("RIGHT",80, 0)
  54
+friends:SetPoint("CENTER", UIParent, "BOTTOMLEFT", LPx+160, LPy)
50 55
 
51 56
 local guild = cargoShip{
52 57
 	name = "|cFFFFB366Ara|r Guild",
53 58
 	parent = friends,
  59
+	width = 50
54 60
 }
55  
-guild:SetPoint("RIGHT",40, 0)
  61
+guild:SetPoint("CENTER", UIParent, "BOTTOMLEFT", LPx+190, LPy)
56 62
 
57 63
 local pager = cargoShip{
58 64
 	name = "nanoTalk",
59 65
 	parent = guild,
  66
+	width = 20
60 67
 }
61  
-pager:SetPoint("RIGHT",50, 0)
  68
+pager:SetPoint("CENTER", UIParent, "BOTTOMLEFT", LPx+240, LPy)
62 69
 
63 70
 --[[BOTTOM RIGHT ]]--
64 71
 
  72
+local RPx, RPy = -50, 10
  73
+
65 74
 local latency = cargoShip{
66 75
 	name = "shLatency",
67  
-	scale = 1.2
  76
+	scale = 1.2,
  77
+	width = 80
68 78
 }
69  
-latency:SetPoint("BOTTOMRIGHT", -30,5)
  79
+latency:SetPoint("CENTER", UIParent, "BOTTOMRIGHT", RPx, RPy)
70 80
 
71 81
 local fps = cargoShip{
72 82
 	name = "shFps",
73  
-	parent = latency
  83
+	parent = latency,
  84
+	width  = 50
74 85
 }
75  
-fps:SetPoint("LEFT",-80,0)
  86
+fps:SetPoint("CENTER", UIParent, "BOTTOMRIGHT", RPx-90, RPy)
76 87
 
77 88
 local stack = cargoShip{
78 89
 	name = "BankStack",
79 90
 	parent = fps,
80  
-	noText = true
  91
+	noText = true,
  92
+	width = 10
81 93
 }
82  
-stack:SetPoint("LEFT",-40,0)
  94
+stack:SetPoint("CENTER", UIParent, "BOTTOMRIGHT", RPx-150, RPy)
83 95
 
84 96
 local dps = cargoShip{
85 97
 	name = "Numeration",
86  
-	parent = stack
  98
+	parent = stack,
  99
+	width = 110
87 100
 }
88  
-dps:SetPoint("LEFT",-100,0)
  101
+dps:SetPoint("CENTER", UIParent, "BOTTOMRIGHT", RPx-220, RPy)
89 102
 
90 103
 --[[ TOP ]]--
91 104
 
  105
+local TPx, TPy = -50, -10
  106
+
92 107
 local equip = cargoShip{
93 108
 	name = "Broker_Equipment",
94  
-	scale = 1.2
  109
+	scale = 1.2,
  110
+	width = 120
95 111
 }
96  
-equip:SetPoint("TOP",-20,-5)
  112
+equip:SetPoint("CENTER", UIParent, "TOP",TPx,TPy)
97 113
 
98 114
 local err = cargoShip{
99 115
 	name = "tekErr",
100  
-	parent = equip
  116
+	parent = equip,
  117
+	width = 10
101 118
 }
102  
-err:SetPoint("RIGHT",80,0)
  119
+err:SetPoint("CENTER", UIParent, "TOP",TPx+55,TPy)
103 120
 
104 121
 local vol = cargoShip{
105 122
 	name = "Volumizer",
106  
-	parent = err
  123
+	parent = equip,
  124
+	width = 40
107 125
 }
108  
-vol:SetPoint("RIGHT",40,0)
  126
+vol:SetPoint("CENTER", UIParent, "TOP",TPx+90,TPy)
109 127
 
110 128
 local loot = cargoShip{
111 129
 	name = "AtlasLoot",
112 130
 	parent = vol,
113  
-	noText = true
  131
+	noText = true,
  132
+	width = 10
114 133
 }
115  
-loot:SetPoint("RIGHT",30,0)
116  
-
117  
-f:RegisterEvent"PLAYER_ENTERING_WORLD"
  134
+loot:SetPoint("CENTER", UIParent, "TOP",TPx+135,TPy)

0 notes on commit d71b8ce

Please sign in to comment.
Something went wrong with that request. Please try again.