Thread Tools Display Modes
09/19/14, 11:01 AM   #1
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
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?

Last edited by dopiate : 09/19/14 at 11:03 AM. Reason: added extra question
  Reply With Quote
09/19/14, 11:16 AM   #2
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Originally Posted by Tierney11290 View Post
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
  Reply With Quote
09/19/14, 11:40 AM   #3
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by dopiate View Post
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.
  Reply With Quote
09/19/14, 02:57 PM   #4
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Originally Posted by merlight View Post
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
  Reply With Quote
09/19/14, 03:06 PM   #5
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
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 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.

Last edited by merlight : 09/19/14 at 03:43 PM.
  Reply With Quote
09/25/14, 06:15 AM   #6
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
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.
  Reply With Quote
09/25/14, 07:15 AM   #7
Wykkyd
Are you Wykkyd Gaming?
 
Wykkyd's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 107
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.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Move Char Screen


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off