Thread Tools Display Modes
10/07/24, 05:23 PM   #1
Amakesh
AddOn Author - Click to view addons
Join Date: Oct 2021
Posts: 4
Unhappy How to dispaly cutom fragment in Crown Store scene("market")?

Does anyone perhaps know how to display a custom item in the “market” scene (the one from Crown Store)? What I mean is to remove the standard experience bar that displays in the upper left corner(and removing that bar works fine), and display my custom one in its place.

I try to do this like that:
Code:
local scene
scene = SCENE_MANAGER:GetScene("market")
scene:AddFragment(fragment)
but..my expeience bar only appears for about a second after I switch tabs e.g Store->ESO Plus and then immediately disappears

Last edited by Amakesh : 10/07/24 at 05:27 PM.
  Reply With Quote
Yesterday, 02:29 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,194
Please read what addons cannot/must not do
https://www.esoui.com/forums/showthread.php?t=9865

Your request is not possible as described there directly at the 1st point
  Reply With Quote
Yesterday, 11:07 AM   #3
Amakesh
AddOn Author - Click to view addons
Join Date: Oct 2021
Posts: 4
Originally Posted by Baertram View Post
Please read what addons cannot/must not do
https://www.esoui.com/forums/showthread.php?t=9865

Your request is not possible as described there directly at the 1st point
1.Change anything prior to or at the character selection screen, pre-ingame code, character creation or at/during loading screens, or in the crown store/market, at the scying UI, at the Tribute game
My Addon changes NOTHING in the Crown Store itself. It does not touch the Crown Store. My addon is an experience bar that displays the level and experience of the currently logged in character.
The standard experience bar that does the same thing is displayed in many scenes (Skills, Inventory, etc.) and I want to replace it in all of them with mine, because mine is customizable. It is possible to swap all of them except for three tabs in the Crown Store - > the Crown Store itself, the tab where you can buy something for Enderavor Seals and the ESO Plus tab. And on these three tabs it is possible to disable the standard bar. So why can't another one be displayed?

Last edited by Amakesh : Yesterday at 11:48 AM.
  Reply With Quote
Yesterday, 02:00 PM   #4
Calamath
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 44
Everything on the screen is a top-level control.

In some special remote scenes such as 'market', top-level controls generated by addons are not rendered. Because ZOS decided to do so.

So regardless of whether it's a scene fragment or not, there's no chance that your addon's top-level control will be rendered in the market scene.
  Reply With Quote
Yesterday, 03:42 PM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,194
I always wonder when an answer like "not possible", even if documented in a post for us all because it was asked many times before already and also many times answered already before (hint: search function of forums), is not taken as a fact
Beside that your question was to add or change controls /fragments at the crown store (scene) so it actually wants to change something in there?

Like Calamath wrote it's simply not possible as ZOs does not want you to do it and if you find a way to make it work you most probably found something that addons MUST not do. So thanks for not trying.

Last edited by Baertram : Yesterday at 03:44 PM.
  Reply With Quote
Yesterday, 03:57 PM   #6
Anthonysc
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 19
I don't think it's that they actually want to change something on the crown store page, it's that they're replacing the XP bar, but the crown store scene causes the XP bar to pop, but because of the restrictions around the crown store it's causing the basegame one to pop instead of the addon-customized one.

So it's not about changing anything in the crown store, it's just about keeping UI consistency (e.g. the enhanced XP bar) across the whole UI. The problem is that while in the crown store scene *everything* on screen "is" the crown store. So it's unfortunate, but just what we have to work with because ZOS doesn't want to risk anything messing with the crown store, probably because there's significant liability there with regard to the involvement of real money. Frankly, I'm surprised that the UI/API is letting them delete elements from those scenes.
  Reply With Quote
Yesterday, 04:26 PM   #7
Amakesh
AddOn Author - Click to view addons
Join Date: Oct 2021
Posts: 4
Originally Posted by Anthonysc View Post
I don't think it's that they actually want to change something on the crown store page, it's that they're replacing the XP bar, but the crown store scene causes the XP bar to pop, but because of the restrictions around the crown store it's causing the basegame one to pop instead of the addon-customized one.

So it's not about changing anything in the crown store, it's just about keeping UI consistency (e.g. the enhanced XP bar) across the whole UI..
That's exactly what I intended, but if there's really nothing that can be done, I'll be forced to leave the standard XP bar from the game in those three tabs and that won't look good.
  Reply With Quote
Yesterday, 05:01 PM   #8
Anthonysc
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 19
Since it sounded like you're able to hide the XP bar on those screens, what I might do is put in a menu option with a toggle to hide or show the XP bar on those screens, it isn't really used there anyway, but then if people still want it they can turn it back on.
  Reply With Quote
Today, 02:09 AM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,194
I would not try to make that work, as I said above.
ZOs does not want us to change anything there, no matter if that would work or not.

Some addons already change things so that the tooltips are missing at the crown store tabs, 1 example, and ppl raised error messages to ZOs about it.
So better just leave all as it is and do not try to make it visible "better". Those scenes or UI parts are just a "no touch" and we should accept it, thanks.

Really: How often do you open the Crown Store and are bothered by the XP bar being shown? I did not even realize that bar there until now that you mentioned it. And you usually spend 99% of your time in the overland/dungeons etc. ;-)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » How to dispaly cutom fragment in Crown Store scene("market")?


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