UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4757 support for adding icons, counters and countdowns to the hud
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "CAN'T FIX".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Time spent
    55 weeks, 500 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    CAN'T FIX
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/630 Item 630] imported from sourceforge.net tracker on 2013-01-28 20:46:59

* added EV_HUD net protocol extension

* this is currently only used in multiplayer and will allow us to add icons,
counters and countdowns to the hud

e_event_hud.c must still be implemented - we need script side support for adding icons (like on the geoscape with the docklet) and counter to the hud

the countdown widget should be a bar that is running from 100% to 0% on a per second basis - this can be done with the ui timers.

i've assigned this to you bayo because i will need your help with the ui here
===== Comments Ported from Sourceforge =====

====== tlh2000 (2011-10-05 07:24:37) ======


====== tlh2000 (2011-10-05 08:12:24) ======

updated version with add_icon and delete_icon confunc (not yet working)
====== tlh2000 (2011-10-05 08:13:13) ======

i've attached an updated version which adds icon support.

@bayo: if you know why the icons are not shown and no error message is printed, please let me know (maybe the render order?)
====== tlh2000 (2011-10-05 08:13:32) ======

oh... you have to create base/pics/icons/1.png - 60x60
====== tlh2000 (2011-10-05 08:14:21) ======

use "add_icon 1" to add it, and "delete_icon 1" to remove it (but remember - not yet working, and i don't know why)
====== bayo-fr (2011-10-05 18:40:31) ======

Well, i am sorry, i think i can't help a lot. I do not really understand what does "counters" and "countdowns", and i dont really understand why the server can send this kind of "generic" "addicon" command.

But:
* IMO "add_icon" is a too much generic name, and do not mean anything.
* you need number? the icon number "1" is called "icons/number_1". It is inside a packed icons. You can check it inside base/ufos/icons.ufo
====== bayo-fr (2011-10-05 18:47:26) ======

I only read the patch.

You dont have icons/1.png? right? or you put something to wait it?

Another thing, instead of "image icon" you should use a component with a real icon/sprite. "button icon", and set the icon like that foobar.icon@icon = "icons/number_1"

I dont think i can check it this weekend, then maybe in 2 weeks.
====== tlh2000 (2011-10-05 19:11:59) ======

i have icons/1.png

the reason why we need this is that the server has to send some events to the client that must be shown to the player. this is an
a) icon
b) counter
c) countdown
all these three things are (server-) game logic, but the client has to display something for them. add_icon is of course too generic, it will be renamed to something hud specific, but first i would like to get to work.
====== bayo-fr (2011-10-05 21:18:03) ======

for exemple, maybe you think about "open door"?

In this case maybe it is more interesting to send something like "soldier_action"

soldier_action number_of_soldier action_id maybe_a_status
soldier_action 1 door2 you_can_open_it

IMO you should not say it is an icon. The gui can catch it and enable/disable a button, add something here or there... that why i ask what you want to do with add_icon.
====== tlh2000 (2011-10-06 13:29:18) ======

see here: http://ufoai.ninex.info/wiki/index.php/TODO/2.5#Multiplayer
====== bayo-fr (2011-10-06 17:00:28) ======

sorry, i still do not understand icons
====== tlh2000 (2011-10-06 17:15:23) ======

forget about the icons for now - the most important part is/are the countdown(s)

then the counter(s)

and last the icons - let's maybe first discuss the first two widgets
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif