cursor relative scaling.

cursor relative scaling.

Requests for features in the spring code.

Moderator: Moderators

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

cursor relative scaling.

Post by smoth »

I like that they maintain the pixel size but if it would be possible can you guys allow for some relative scaling for the cursors?

Here is the problem. I am working on cursors and when I created my first one several users screamed about the cursors being huge, however, I wanted them to be good and visible on my wide screen monitor. After all if I make them comfortable for users of low res I will have a spec. On the other hand if I make them comfortable for me, they are huge. could you guys make the cursors have a scale value per axis so I can set a % based on say the x size of the screen? I don't want it to stretch to the screen on both axis i want it to stay the same square shape it already was.

please?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: cursor relative scaling.

Post by trepan »

sounds like a good candidate for ... luafication?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

i was trying for a non lua solution. We are already having our projects become lua nightmares. It seems that this is a feature that could benefit all of us. It's ok, I kinda expect the response to be thus.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: cursor relative scaling.

Post by trepan »

did you know that lua can easily swap cursors dynamically?
check the screen size, swap the cursors ...
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: cursor relative scaling.

Post by lurker »

Swap is simple, but we already discussed swapping, and smoth wanted to ask about keeping one cursor a fixed size. Keeping a fixed size with lua is not as friendly even if doable afaik.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

yar, gnomre gave me some code to even do the faction specific cursors but I was making a general request.

I kinda knew the answer would just be "lua" which is why I stopped asking anything. I thought up a few ways to do it just wanted to ask. Lua it has become the standard response to all requests that involve in game behaviors. I actually didn't want to post but was told try anyway.

I guess it is no big deal to swap them, just adding 3 times the work for new cursors. Thanks Trepan, that solution is less expensive that what I planned.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: cursor relative scaling.

Post by trepan »

Add SVG image support with a host of scaling options
(pixels, screen percentage, maxspect percentage, etc...)
The cursor feature should naturally fall out from that :)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: cursor relative scaling.

Post by Pxtl »

I'm curious - why don't we hear this complaint about the default cursors, only Smoth's cursor - is the default cursor inscrutable on high-spec screens?

If so, that sounds like a universal problem, and unversal problems would be nicely handled by the engine.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

Pxtl wrote:I'm curious - why don't we hear this complaint about the default cursors, only Smoth's cursor - is the default cursor inscrutable on high-spec screens?

If so, that sounds like a universal problem, and unversal problems would be nicely handled by the engine.
because I ran into it fooling with my cursor when I was looking possible ui issues. However, yes, the reason I brought it up was because I was thinking more that just myself could benefit.

Trepan, photoshop has no svg format (as awesome as it would be to save my image as an xml file) Know of any editors?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: cursor relative scaling.

Post by trepan »

Inkscape is a nice OSS SVG editor.
http://inkscape.org/
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

cool, I have liked the idea of svgs and I had a class on adobe's vector tool actually aced that class. anyway, really tired, I don't know if anyone will impliment that but I don't know if that is really a good solution as vector image is not the "look" I want.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: cursor relative scaling.

Post by hoijui »

...talking about SVG support for the engine...
this means, we need C/C++ code to convert SVG to bitmap?
there should be something like this somewhere on the net, no?
or is it just that it is not really needed?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: cursor relative scaling.

Post by imbaczek »

there's plenty of svg renderers, cairo is the most well-known afaik.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: cursor relative scaling.

Post by hoijui »

well.. what else would it be usefull for if we had this in the engine?
i mean.. if it is so easy...
only to rescale cursors may not be enough to justify integrating SVG, i guess.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: cursor relative scaling.

Post by imbaczek »

svg is good for any types of scalable icons and gui. it's got 'scalable' in the name for a reason ^^
Masure
Posts: 581
Joined: 30 Jan 2007, 15:23

Re: cursor relative scaling.

Post by Masure »

They could have named it "vg"
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: cursor relative scaling.

Post by hoijui »

soo.. all kind of GUI elements with SVG eg? also through LUA, so widgets and gadgets can use them too?

is it just like adding one more image format in a central place, or would it need lots of additions everywhere in hte code?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: cursor relative scaling.

Post by imbaczek »

actually, i have no idea. svg should be treated a little bit differently - there should be a way to request a rendered bitmap of requested size.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: cursor relative scaling.

Post by thesleepless »

usr librsvg

http://librsvg.sourceforge.net/docs/htm ... tions.html

nice and simple
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursor relative scaling.

Post by smoth »

BUMP!
Post Reply

Return to “Feature Requests”