Could <img> get srcindex="offset" and iid=&q

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Could <img> get srcindex="offset" and iid=&q

Postby SilverEagle » 8. Oct 08, 10:44

Hi Team,

Really useful for impressive skins:

Could <img> be expanded like the following:

<img ...unchanged... srcindex="0" id="name" />

srcindex would function the same as with <button>, and id would function the same as with <text>.

From script you could then use "program.setSkinIndex(nr)" to select the subimage displayed.

If you would also support stretching at the same time there should be a way to indicate the orientation, your choice for syntax (SilverJuke otherwise has no way of knowing it there are multiple rows or multiple columns in the grid of subimages).

Regards,
SilverEagle

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Could <img> get srcindex="offset" and ii

Postby SilverEagle » 9. Oct 08, 13:45

Hi Team,

I just though of a probably even easier modification, and one not running into the issue of columns-of-rows versus rows-of-columns:

Why not be able to have a hidden=0/1 flag on all objects? Same like the inactive=0/1 flag, but on all objects. All objects also would have to accept the id="name" attribute, and a program.setHidden(id) would control it all from script.
I think this is even better than my previous idea, and I guess/hope it would be rather easy to implement.

Would also probably make the 50-skin limit issue moot, as skins are now misused to show all combinations of images you'd like to display.

Regards,
SilverEagle

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Could <img> get srcindex="offset" and ii

Postby Service-Team » 9. Oct 08, 19:19

The hidden attribute may really be a simple but effective way for animations. We will keep this in mind when we are working on the skinning engine.

Thank you very much for your ideas.

Best regards,
Your Silverjuke-Team


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”