Thread Tools Display Modes
11-30-14, 07:21 PM   #1
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Auctionhouse

Yes... I have got to ask

Does anyone know of an already existing AH enlargement option?

https://www.dropbox.com/s/oj56v9nosj...17.46.PNG?dl=0
That's what mine looks like - yeah I know the strings are borked, will fix at some point. But it's too small :P

I just meh...

==== edit ====

I can get it resized - somewhat, just the texturing is being a pita....

https://www.dropbox.com/s/7b2j1ic2yb...06.52.PNG?dl=0
ˆ^Framestack shows it is resized.

But ... overriding the textures proves a pita...
Lua Code:
  1. <Layer level="ARTWORK">
  2.             <Texture name="$parentTopLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-TopLeft">
  3.                <Size x="256" y="256"/>
  4.                <Anchors>
  5.                   <Anchor point="TOPLEFT"/>
  6.                </Anchors>
  7.             </Texture>
  8.             <Texture name="$parentTop" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-Top">
  9.                <Size x="320" y="256"/>
  10.                <Anchors>
  11.                   <Anchor point="TOPLEFT" x="256" y="0"/>
  12.                </Anchors>
  13.             </Texture>
  14.             <Texture name="$parentTopRight" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-TopRight">
  15.                <Size x="256" y="256"/>
  16.                <Anchors>
  17.                   <Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="TOPRIGHT" x="0" y="0"/>
  18.                </Anchors>
  19.             </Texture>
  20.             <Texture name="$parentBotLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-BotLeft">
  21.                <Size x="256" y="256"/>
  22.                <Anchors>
  23.                   <Anchor point="TOPLEFT" x="0" y="-256"/>
  24.                </Anchors>
  25.             </Texture>
  26.             <Texture name="$parentBot" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-Bot">
  27.                <Size x="320" y="256"/>
  28.                <Anchors>
  29.                   <Anchor point="TOPLEFT" x="256" y="-256"/>
  30.                </Anchors>
  31.             </Texture>
  32.             <Texture name="$parentBotRight" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-BotRight">
  33.                <Size x="256" y="256"/>
  34.                <Anchors>
  35.                   <Anchor point="TOPLEFT" relativeTo="$parentBot" relativePoint="TOPRIGHT" x="0" y="0"/>
  36.                </Anchors>
  37.             </Texture>
  38.          </Layer>

==== edit 2 ====

Lua Code:
  1. AuctionFrame:SetSize(924, 447) -- same height, new width
  2. -- AuctionFrame:SetTexture(0, 0, 0, .8)
  3. AuctionFrameBrowse:SetSize(850, 447)
  4. AuctionFrameBid:SetSize(850, 447)
  5. AuctionFrameAuctions:SetSize(850, 447)

SetTexture obviously won't go - CreateTexture works, but can't actually use a texture

Edit:
Wow I am SO dumb at times. Serves me right for trying this when I have a massive headache....
Moonwitch, you should create a texture and ACTUALLY NAME IT!! So you can set a texture to THAT NAME...

Yeah... I know

==== edit 3 ====

https://www.dropbox.com/s/dc0y1qnkui...26.53.PNG?dl=0

Getting closer, but still not able to get the AH textures...
__________________

Last edited by MoonWitch : 11-30-14 at 09:45 PM.
  Reply With Quote
11-30-14, 09:34 PM   #2
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Did you know you can edit your posts?^^
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-30-14, 09:39 PM   #3
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Yep, I did.

But I wanted to clearly show some vague progress and keep a separation thing going... :P

There; fixed it. Was easier to just create a new post earlier.
__________________

Last edited by MoonWitch : 11-30-14 at 09:46 PM.
  Reply With Quote
12-01-14, 01:43 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The problem with the textures is the same problem found throughout Blizzard's code -- they hardcode all the texture sizes and positions, rather than using sensible relative anchoring.

For a simple example, if you have a button with a left end texture, a right end texture, and a middle texture that should grow with the button width, you can either do it The Blizzard Way, which is annoying to set up in the first place and even more annoying to resize later:

Code:
button:SetSize(100, 25)

texLeft:SetPoint("TOPLEFT")
texLeft:SetSize(25, 25)

texMiddle:SetPoint("TOPLEFT", 25, 0)
texMiddle:SetSize(50, 25)

texRight:SetPoint("TOPLEFT", 75, 0)
texRight:SetSize(25, 25)
... or you can do it this way, which is slightly more code but much less mental effort to set up, and zero effort of any kind to resize later:

Code:
button:SetSize(100, 25)

texLeft:SetPoint("TOPLEFT")
texLeft:SetPoint("BOTTOMLEFT")
texLeft:SetWidth(25)

texRight:SetPoint("TOPRIGHT")
texRight:SetPoint("BOTTOMRIGHT")
texRight:SetWidth(25)

texMiddle:SetPoint("TOPLEFT", texLeft, "TOPRIGHT")
texMiddle:SetPoint("BOTTOMRIGHT", texRight, "BOTTOMLEFT")
Now it won't matter how you resize the button; the textures will always be placed correctly and stretch to fill the button.

And, probably not relevant to the auction house or other UI panel frames, but if you wanted to make sure that the left/right textures on the button were always square (eg. in the above example, if you make the button 50px tall instead of 25px, the left/right textures automatically grow to 50px tall, but remain 25px wide) you could set an OnSizeChanged script:

Code:
button:SetScript("OnSizeChanged", function(self, width, height)
    texLeft:SetWidth(height)
    texRight:SetWidth(height)
end)
For the auction house, just nuke all the background texture points and re-set them as in the above example, with the left/right sides anchored to the left/right sides of the window, and the middle texture stretched between them.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-01-14, 05:24 AM   #5
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
I will try that one..
Also using your phone to browse this forum sucks pretty hard.

Tonight I shall prevail. Thanks Phanx (which my phone autocorrects to plant.... Sorry.)
__________________
  Reply With Quote
12-01-14, 08:33 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by MoonWitch View Post
Thanks Phanx (which my phone autocorrects to plant.... Sorry.)
Didn't we just have a conversation about how useless autocorrection is?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-01-14, 06:03 PM   #7
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by Phanx View Post
Didn't we just have a conversation about how useless autocorrection is?
Yes, yes we did.

You make me smile.. at 1AM when I am working - not so tirelessly right now - on a birthday card
__________________
  Reply With Quote
12-03-14, 06:26 PM   #8
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Ok, it's stretched, not tiled. But w00t.

https://www.dropbox.com/s/buyvm3ea56...25.09.PNG?dl=0

Also : Will coin this Cialis.
__________________
  Reply With Quote
12-03-14, 06:57 PM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
With textures like these, you can't really tile them, since they don't just contain the "background" part, but also the "borders" and "button cutouts" parts. You could add additional texture objects and slice up the textures using texcoords, but it would be a lot of work to get it looking right, and wouldn't actually look all that much different than the stretched version.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-04-14, 12:10 PM   #10
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
So all that's left is ask Tekkub for permission. Irregardless of his license :P
__________________
  Reply With Quote
12-04-14, 08:14 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by MoonWitch View Post
Irregardless
That is not a word, no matter what George W. Bush thinks.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-05-14, 10:49 AM   #12
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by Phanx View Post
That is not a word, no matter what George W. Bush thinks.
should be regardless, shouldn't it?
__________________
  Reply With Quote
12-05-14, 01:11 PM   #13
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Indeed it should.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
12-05-14, 11:50 PM   #14
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Originally Posted by Phanx View Post
That is not a word, no matter what George W. Bush thinks.
Irregardless I'll continue using it as such.
__________________
Tweets YouTube Website
  Reply With Quote
12-06-14, 02:43 AM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by 10leej View Post
Irregardless I'll continue using it as such.
Rarely is the question asked: Is our children learning?

But the answer is: No, our children is not learning.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-06-14, 01:21 PM   #16
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Phanx View Post
Rarely is the question asked: Is our children learning?

But the answer is: No, our children is not learning.
That makes my brain hurt.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
12-06-14, 01:58 PM   #17
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
It's got its own Wikipedia entry and everything!
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-06-14, 02:40 PM   #18
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Originally Posted by Seerah View Post
That makes my brain hurt.
alot or just a lot?
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
12-06-14, 03:46 PM   #19
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
allot hehe
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
12-06-14, 06:42 PM   #20
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Auctionhouse


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