Skip to content

Commit bd00fe1

Browse files
feat: Disable head camera. Rescale UI (#6)
1 parent 2eddf76 commit bd00fe1

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

Screenshot.png

1.13 MB
Loading

patches/lose files/Interface/addons/transmog_by_dan/client_transmog.lua

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ local function InitTabSlots()
255255
local itemChild
256256
if ( i == 1 ) then
257257
itemChild = CreateFrame("Frame", "ItemChild"..i, TransmogFrame, "TransmogItemWrapperTemplate")
258-
itemChild:SetPoint("TOPLEFT", 400, -240)
258+
itemChild:SetPoint("TOPLEFT", 480, -240)
259259
firstInRowSlot = itemChild
260260
else
261261
if ( i == 4 ) then
@@ -264,7 +264,7 @@ local function InitTabSlots()
264264
firstInRowSlot = itemChild
265265
else
266266
itemChild = CreateFrame("Button", "ItemChild"..i, lastSlot, "TransmogItemWrapperTemplate")
267-
itemChild:SetPoint("RIGHT", 180, 0)
267+
itemChild:SetPoint("RIGHT", 230, 0)
268268
end
269269
end
270270

@@ -503,16 +503,18 @@ function TransmogHandlers.InitTab(player, newSlotItemIds, page, hasMorePages)
503503
end
504504
child.itemModel:Undress()
505505
child.itemModel:TryOn(currentSlotItemIds[i])
506-
507-
if currentSlot == PLAYER_VISIBLE_ITEM_1_ENTRYID then
508-
child.itemModel:SetPoint("CENTER", 0, 0)
509-
child.itemModel:SetCamera(0)
510-
else
511-
child.itemModel:SetPoint("CENTER", 0, -15)
506+
child.itemModel:SetPoint("CENTER", 0, -15)
507+
508+
-- TODO Camera? currently not usable because of lacking ultrawide support
509+
--if currentSlot == PLAYER_VISIBLE_ITEM_1_ENTRYID then
510+
--child.itemModel:SetPoint("CENTER", 0, 0)
511+
--child.itemModel:SetCamera(0)
512+
--else
513+
--child.itemModel:SetPoint("CENTER", 0, -15)
512514
--child.itemModel:SetCamera(1)
513515
--child.itemModel:SetViewTranslation(0.2, 0.2)
514516
--child.itemModel:Show()
515-
end
517+
--end
516518
end
517519
end
518520
end

patches/lose files/Interface/addons/transmog_by_dan/client_transmog.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@
195195
</Layers>
196196
</Button>
197197
<Frame name="TransmogFrame" parent="UIParent" toplevel="true" setAllPoints="true" id="6" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG">
198-
<Size x="1000" y="700"/>
198+
<Size x="1200" y="700"/>
199199
<Anchors>
200200
<Anchor point="CENTER" relativeTo="UIParent"/>
201201
</Anchors>
202202
<Layers>
203203
<Layer level="BACKGROUND">
204204
<Texture name="$parentDialogBG" hWrapMode="false" vWrapMode="false" vertTile="false" horizTile="false" file="Interface\AddOns\transmog_by_dan\assets\Transmog-BG">
205-
<Size x="1000" y="700"/>
205+
<Size x="1200" y="700"/>
206206
<TexCoords left="0" right="0.52" top="0" bottom="0.66">
207207
<Rect ULx="" ULy="" LLx="" LLy="" URx="" URy="" LRx="" LRy="" />
208208
</TexCoords>
@@ -219,30 +219,30 @@
219219
</FontString>
220220
<FontString name="SearchString" text="Search:" inherits="GameFontNormal">
221221
<Anchors>
222-
<Anchor point="BOTTOMLEFT" x="56" y="70"/>
222+
<Anchor point="BOTTOMLEFT" x="96" y="70"/>
223223
</Anchors>
224224
</FontString>
225225
<FontString name="TransmogPaginationText" text="Page 1" inherits="GameFontNormal">
226226
<Anchors>
227-
<Anchor point="BOTTOM" x="158" y="55"/>
227+
<Anchor point="BOTTOM" x="184" y="55"/>
228228
</Anchors>
229229
</FontString>
230230
</Layer>
231231
</Layers>
232232
<Frames>
233233
<Button name="TransmogCloseButton" inherits="UIPanelCloseButton" >
234234
<Anchors>
235-
<Anchor point="TOPRIGHT" x="-20" y="-70"/>
235+
<Anchor point="TOPRIGHT" x="-30" y="-75"/>
236236
</Anchors>
237237
</Button>
238238
<DressUpModel name="TransmogModelFrame">
239239
<Size>
240-
<AbsDimension x="190" y="380"/>
240+
<AbsDimension x="202" y="380"/>
241241
</Size>
242242
<Anchors>
243243
<Anchor point="TOPLEFT">
244244
<Offset>
245-
<AbsDimension x="90" y="-240"/>
245+
<AbsDimension x="120" y="-240"/>
246246
</Offset>
247247
</Anchor>
248248
</Anchors>
@@ -299,7 +299,7 @@
299299
</DressUpModel>
300300
<Button name="TransmogCharacterHeadSlot" inherits="TransmogItemSlotButtonTemplate">
301301
<Anchors>
302-
<Anchor point="TOPLEFT" relativeTo="TransmogModelFrame" x="-36" y="0"/>
302+
<Anchor point="TOPLEFT" relativeTo="TransmogModelFrame" x="-46" y="0"/>
303303
</Anchors>
304304
<Scripts>
305305
<OnClick function="OnClickHeadTab"/>
@@ -355,7 +355,7 @@
355355
</Button>
356356
<Button name="TransmogCharacterHandsSlot" inherits="TransmogItemSlotButtonTemplate">
357357
<Anchors>
358-
<Anchor point="BOTTOM" relativeTo="TransmogCharacterHeadSlot" x="226" y="0"/>
358+
<Anchor point="BOTTOM" relativeTo="TransmogCharacterHeadSlot" x="260" y="0"/>
359359
</Anchors>
360360
<Scripts>
361361
<OnClick function="OnClickHandsTab"/>
@@ -410,25 +410,25 @@
410410
</Scripts>
411411
</Button>
412412
<Button name="LeftButton" text="d" inherits="UIMenuButtonStretchTemplate">
413-
<Size x="40" y="20"/>
413+
<Size x="64" y="64"/>
414414
<NormalFont style="Arrows"/>
415415
<DisabledFont style="ArrowsDisabled"/>
416416
<HighlightFont style="ArrowsHighlight"/>
417417
<Anchors>
418-
<Anchor point="BOTTOM" x="80" y="50"/>
418+
<Anchor point="BOTTOM" x="100" y="30"/>
419419
</Anchors>
420420
<Scripts>
421421
<OnLoad>self:Disable()</OnLoad>
422422
<OnClick function="OnClickPrevPage"/>
423423
</Scripts>
424424
</Button>
425425
<Button name="RightButton" text="F" inherits="UIMenuButtonStretchTemplate">
426-
<Size x="40" y="20"/>
426+
<Size x="64" y="64"/>
427427
<NormalFont style="Arrows"/>
428428
<DisabledFont style="ArrowsDisabled"/>
429429
<HighlightFont style="ArrowsHighlight"/>
430430
<Anchors>
431-
<Anchor point="BOTTOM" x="230" y="50"/>
431+
<Anchor point="BOTTOM" x="270" y="30"/>
432432
</Anchors>
433433
<Scripts>
434434
<OnLoad>self:Disable()</OnLoad>

0 commit comments

Comments
 (0)