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 Feature request #4046 UI: Way to check if hand has no weapon
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Feature request
  • Category
    User interface
  • Targetted for
    Not determined
  • Status
    Closed
  • 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
Issue details
  • Complexity
    Not determined
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/feature-requests/562 Item 562] imported from sourceforge.net tracker on 2013-01-28 20:22:06

Currently, *cvar:mn_rweapon and *cvar:mn_lweapon are not a reliable way to check whether or not to display UI options for a second hand. A two-handed weapon will fill up both cvars.

I would like to hide the second weapon panel in the UI if the player is only carrying one weapon (even if it is a two-handed weapon). All I need is something I could write a confunc with that would check and show/hide the node accordingly.
===== Comments Ported from Sourceforge =====

====== tlh2000 (2011-09-26 19:36:30) ======

the code is in HUD_UpdateActorCvar - and this code should be put into a confunc anyway imo.
====== tlh2000 (2011-09-26 19:37:27) ======

hm. but lweapon and rweapon should work, too
====== mcr2010 (2012-04-20 15:42:56) ======

all you need to do here is to also compare if both cvars store the same value
====== natewr (2013-01-22 16:34:51.932000) ======

- **status**: open --> closed
- **milestone**: --> UI
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif