Why does the page number in the "online content" acts like a button?

Post Reply
User avatar
pampogokiraly
Member
Posts: 225
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Why does the page number in the "online content" acts like a button?

by pampogokiraly » Post

So you can click this,
Image
and it makes an animation like the other normal buttons... why lol?
Attachments
sowhydoesthis.png
(137.1 KiB) Not downloaded yet
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

User avatar
Andrey01
Member
Posts: 2444
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Why does the page number in the "online content" acts like a button?

by Andrey01 » Post

Yes, it is really represented as a button in dlg_contentstore.lua on line 368 (LOL):

Code: Select all

"button[1.6,0;2,0.8;pagenum;", tonumber(cur_page), " / ", tonumber(dlgdata.pagemax), "]",
I will probably make a patch and fix it.

User avatar
rubenwardy
Moderator
Posts: 6296
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Why does the page number in the "online content" acts like a button?

by rubenwardy » Post

That is intentional. Buttons have center aligned text, in both directions. There's currently no way to do this with labels

User avatar
v-rob
Developer
Posts: 793
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: Why does the page number in the "online content" acts like a button?

by v-rob » Post

Using the content_offset style set to 0 should fix the problem
GUI Core Developer | My Best Mods: Bridger - Slats - Stained Glass | To contact me, send a PM

User avatar
pampogokiraly
Member
Posts: 225
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: Why does the page number in the "online content" acts like a button?

by pampogokiraly » Post

Okay lol

It's still very strange... I hope it will get "fixed" soon :)
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests