ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Move Char Screen (https://www.esoui.com/forums/showthread.php?t=2256)

dopiate 09/19/14 11:01 AM

Move Char Screen
 
Is there an addon that would allow me to move the default Character screen?

I would like to move it and over.

Thanks,
-d

ps just so I dont create a new thread is there an addon to let me know when my food buff fades like Weapon Charge does?

dopiate 09/19/14 11:16 AM

Quote:

Originally Posted by Tierney11290 (Post 12223)
Are you talking about the Character Select Screen or the menus in-game? If you mean the former, then it can't be done as addons are loaded per character, meaning that UI elements can not be altered/moved until a character is loaded.

For food buffs, I think Srendarr or a similar addon can do that for you.



I mean the UI element that comes up when you hit "c"

I'll check out srendarr, thanks

merlight 09/19/14 11:40 AM

Quote:

Originally Posted by dopiate (Post 12224)
I mean the UI element that comes up when you hit "c"

Problem is it comes with a background texture that that doesn't have a nice right edge, it's supposed to be hidden beyond screen edge.



So unless you replace the background texture, you can only stick it to the right or left edge.

dopiate 09/19/14 02:57 PM

Quote:

Originally Posted by merlight (Post 12225)
Problem is it comes with a background texture that that doesn't have a nice right edge, it's supposed to be hidden beyond screen edge.



So unless you replace the background texture, you can only stick it to the right or left edge.

ok bummer - I have Mer Character Sheet and all the associated other apps it supports and the list is great but I wanted to center it and move it up more so I can see more at once.

anyway, thanks for the answer.

-d

merlight 09/19/14 03:06 PM

Well, as you can see it could be extended about 250 units to the left before the ugly edge pops out, and the whole texture can be scaled, so it's pretty much possible to cover half of your screen. I think it'll look awful, but I'll give it a thought tomorrow :) or the day after...

Edit: I've just found the right edge of the background texture in another, unused background widget :D Still don't understand why they're splitting these textures, it's not like you can resize one and not the other if you need a different size :)

So moving the sheet should be possible, with replaced background. Vertically it should not be difficult to resize. Horizontally, that's a different beast, one that's probably not worth the effort.

merlight 09/25/14 06:15 AM

I tried to make it resizable the easy way, didn't work well. Perhaps adding invisible strips acting as resize handlers and resizing manually could work, but currently I'm not striving to implement that (too much work for uncertain results :)). But... as you've shown you're not afraid of Lua, here's something you can use:

Lua Code:
  1. function hackCharacterSheetSize(centerY, desiredHeight)
  2.     local panel = ZO_StatsPanel
  3.     local background = ZO_SharedStatsBackground
  4.     local backgroundTexture = ZO_SharedStatsBackgroundBG
  5.  
  6.     local screenHeight = GuiRoot:GetHeight()
  7.     local centerY = zo_clamp(centerY, screenHeight / -3, screenHeight / 3)
  8.     local desiredHeight = zo_clamp(desiredHeight, 215, screenHeight)
  9.     local scaleY = desiredHeight / 750
  10.  
  11.     -- set background position and size
  12.     background:ClearAnchors()
  13.     background:SetAnchor(RIGHT, nil, RIGHT, 0, 20 + centerY)
  14.     background:SetHeight(750 * scaleY)
  15.  
  16.     -- scale background texture
  17.     backgroundTexture:ClearAnchors()
  18.     backgroundTexture:SetAnchor(TOPLEFT, nil, TOPLEFT, -75, -75 * scaleY)
  19.     backgroundTexture:SetHeight(1024 * scaleY)
  20.  
  21.     -- anchor panel to background (originally they were independent)
  22.     panel:ClearAnchors()
  23.     panel:SetAnchor(TOPRIGHT, background, TOPRIGHT, 0, 8 * scaleY)
  24.     panel:SetAnchor(BOTTOMLEFT, background, BOTTOMLEFT, 0, -12 * scaleY)
  25. end

Just drop it in an add-on, then you can experiment a bit with it ingame using
/script hackCharacterSheetSize(offsetY, height)

/script hackCharacterSheetSize(0, 750)
-- that's the original position & size

/script hackCharacterSheetSize(-150, 550)
-- will move it up and shrink

/script hackCharacterSheetSize(0, 900)
-- will enlarge it, with this height mine takes almost all unshaded space, background spilling into top and bottom strips

When you find the right values, you can insert that call into function MovableStats:SetUpTitleSection() for example.

Wykkyd 09/25/14 07:15 AM

I would do one more thing: Drop a custom back panel behind the character sheet and hide the munge crud they have back there by default. Then you can pretty much do whatever you want.


All times are GMT -6. The time now is 05:19 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI