From: Erik V. <eri...@hc...> - 2009-01-07 21:22:44
|
Just to see what can be achieved in a simple way, I have added a column of info icons to the StartRoundWindow, one for each start item. Hovering the mouse over an icon will show up a tooltip describing the item. This description is mainly composed from the toString() results of the objects contained in each item. I have found the icon in the sourceforge icon-collection. It's a simple 20x20 pixel gif, which I have stored in a new folder rails/ui/images. I think the descriptions are already pretty good, although I see room for improvement. Perhaps we should add getDescription() methods to create descriptions that are better tailored for UI display. Another approach could be to add some blurb for each start item in CompanyManager.xml, but for a nice effect I would be in favour to have it HTML-encoded, as it is now. Please let me know what you think about this all. Revealing the item status (other than the already available buyable and biddable tooltips) is not so straightforward if we want to follow the existing patterns (intended to support the future client/server split). It's dynamic info that is not yet passed from engine to UI, and the "normal" way to add it would be through the existing Observable/Observer interface. This would definitely need more work. As for the colour coding of the item status: if we want to go that way, I would be in favour of minimal changes, like: sold: black on white (as is) biddable/select for auctioning: black on orange (as is). buyable: bright green on orange. not yet available: grey on white. Erik. -----Original Message----- From: Erik Vos [mailto:eri...@hc...] Sent: Tuesday 06 January 2009 20:52 To: 'Development list for Rails: an 18xx game' Subject: Re: [Rails-devel][Rails-commits]18xx/rails/gameStartRound_1835.java, 1.15, 1.16 In fact, tooltips are already used to indicate whether items can be bought, bid upon, or selected for bidding (as in 18EU). Currently, tooltips are only implemented for the 'active' ClickField UI objects, not for the 'passive' Field objects; but that should not be difficult to add. Please note, that we are talking about a mix of static info (the private properties) which can be handled in the UI only, and dynamic info (the item status), which needs be conveyed from the server. If we really are mixing up these two bits of info, the Field and ClickField object will get more complex. Perhaps we should subclass Field to add such tooltips. Erik. -----Original Message----- From: brett lentz [mailto:wak...@gm...] Sent: Tuesday 06 January 2009 02:54 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] [Rails-commits]18xx/rails/gameStartRound_1835.java, 1.15, 1.16 It shouldn't be hard to do some tooltips for these. ---Brett. On Mon, Jan 5, 2009 at 3:58 PM, Mark Smith <mar...@gm...> wrote: > One of the other pieces of information I would like to see on the Start > Packet info is some way to describe the special features of the item > (Private Company restrict placement on hex XX, Private Company can be traded > for Share of Company YYY, Purchase of item comes with Share of XXX, etc). > This would be applicable across all games, and would help to remind folks > what the item does for them. > > This could be done with a simple icon, or text of --- ?? -- that is either a > hoverable item that shows a pop-up/tool-tip, or an actual hyper link to > generate a pop-up dialog box. > > Mark > > On Mon, Jan 5, 2009 at 1:55 PM, brett lentz <wak...@gm...> wrote: >> >> I worry that an extra column might add clutter. >> >> I like the strikethrough idea or using colors to convey this >> meta-information. >> >> ---Brett. >> >> On Mon, Jan 5, 2009 at 10:24 AM, Erik Vos <eri...@hc...> wrote: >> > Mark, >> > >> > What about an extra column in which to display the item status (a short >> > text)? >> > Status values could be like "buyable", "biddable", "sold", "low cash", >> > "not >> > yet". >> > Could display these values in different colours as well (e.g. the first >> > two >> > in black, the last three in gray). >> > >> > Erik. >> > >> > ________________________________ >> > From: Mark Smith [mailto:mar...@gm...] >> > Sent: Monday 05 January 2009 00:13 >> > To: Development list for Rails: an 18xx game >> > Subject: Re: [Rails-devel] [Rails-commits] >> > 18xx/rails/gameStartRound_1835.java, 1.15, 1.16 >> > >> > Erik, >> > >> > Yes, now that I went back an re-read the rules I quoted, I see that my >> > interpretation was in error. >> > >> > Part of the reason I was looking at this issue, besides the fact I knew >> > it >> > was wrong, was that I was trying to figure out if there was a better way >> > to >> > display the start packet for 1835 (and others) where you have multiple >> > items >> > available at the start, but not all. A display by row of everything in >> > the >> > row. >> > >> > In working with this, I also see that an item becomes un-available if >> > there >> > is no sufficient cash for the player to purchase it. But it is not >> > immediately obvious, unless you look at the price, and the cash. What >> > would >> > help is for some way to indicate items that have been SOLD (maybe draw a >> > line through), or draw as blank -- and then for those you can't buy due >> > to >> > insufficient cash, to have a tool tip explain why it is not available >> > for >> > the player. >> > >> > Mark >> > >> > P.S. I do need to get back to my Tile Tray contribution -- and I thought >> > with 4 days at home (New Years) I would find the time. However, the >> > puppy >> > kept distracting me. >> > >> > On Sun, Jan 4, 2009 at 8:15 AM, Erik Vos <eri...@hc...> wrote: >> >> >> >> Modified Files: >> >> StartRound_1835.java >> >> Log Message: >> >> Improve Start Packet Handling so that only the left most item >> >> from >> >> the second available row is for sale, rather than the entire second >> >> row. >> >> >> >> Mark, >> >> >> >> thanks for spotting this error. However, unfortunately your fix was not >> >> entirely correct. >> >> For instance, when the first and second rows were completely sold, the >> >> entire third row but also the first item of the fourth row became >> >> available. >> >> >> >> The original error was only that item++ was missing after the last >> >> buyable=true statement. >> >> I have now fixed it slightly differently: by moving item++ downwards. >> >> >> >> Erik. >> >> >> >> >> >> >> >> >> >> ---------------------------------------------------------------------------- -- >> >> _______________________________________________ >> >> Rails-devel mailing list >> >> Rai...@li... >> >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > >> > >> > >> > ---------------------------------------------------------------------------- -- >> > >> > _______________________________________________ >> > Rails-devel mailing list >> > Rai...@li... >> > https://lists.sourceforge.net/lists/listinfo/rails-devel >> > >> > >> >> >> ---------------------------------------------------------------------------- -- >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ---------------------------------------------------------------------------- -- > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > ---------------------------------------------------------------------------- -- _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel ---------------------------------------------------------------------------- -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |