I'm struggling with such a stupid thing... My images just doesn't works... Actually, only part of them.
example on pictures:
Do you need to precache images by any way? I do rebuild map for changes in img folder (idk do I need to)
Any advices?
1 messages · Page 1 of 1 (latest)
I'm struggling with such a stupid thing... My images just doesn't works... Actually, only part of them.
example on pictures:
Do you need to precache images by any way? I do rebuild map for changes in img folder (idk do I need to)
Any advices?
I've tried to use different pathes but still doesn't work. I did delete my whole folder, and took it back - for now none of pictures is working
icon.style.backgroundImage = url("file://{images}/custom_game/+hero+/+icon_name+_png.png");
icon.style.backgroundImage = url("file://{images}/custom_game/+hero+/+icon_name+.png");
icon.style.backgroundImage = url("file://{images}/custom_game/+hero+/+icon_name+");
icon.style.backgroundImage = url("file://{images}/custom_game/+hero+/+icon_name+.vpcf");
at one moment two of them starts showing up and idk why
You need to compile them in order to make them work. Engine can't detect images that you use via js so you need either reference them in xml (so auto compiler will work) or create some compiler.xml that has references to every image you are using
is there any examples for compiler?
<root>
<Panel style="visibility: collapse;">
<Image src="path_to_image"/>
</Panel>
</root>
After you made this file right click it in asset browser and force recompile
If force recompile doesn't work reference it in custom_ui_manifest (it will do nothing because of collapse visibility)
so your idea is manually set the path for EVERY image in xml? ive never seen anything like this in other custom maps. do you know any examples on github or whatever?
i bet it works but sounds weird
You need anyway compile every image you are using via this approach or any other way
No idea how to search github for that...
okay i see
I'd like to hear any other comments about this. Still a bit confused. But thanks for your help
If you need just gear and dota icon you can use valve ones via s2r:// (use panorama debugger F6? to find exact path)
im using gear just for an example. but what about s2r? is there any list of them what can i use?
can you explain wdym?
where is button for force recompile
please and thank you
file:// used to reference any your custom asset
s2r:// used to reference any valve built in asset from pak01dir and rest places
Use filter text bar to find your xml, right click it with mouse button and press force recompile in context menu