project-navigation
Personal tools

Author Topic: Lazy HUD v2  (Read 2393 times)

Offline Norby

  • Rookie
  • ***
  • Posts: 41
    • View Profile
Lazy HUD v2
« on: March 12, 2017, 11:37:13 pm »
This HUD is an improved version of Lazy HUD, which originally made by homunculus.
Contain bugfixes and many new functions. For a comparsion the source code of
hud_lazy2.ufo file is three times longer than in v1.

Download Lazy HUD v2 here.



New features:

-Bleedings are displayed with numeric values also next to body part icons.
 Sum of bleedings are appear in big red numbers on the heads of the team.
 
-Hit counters are added to selected solider panel and over TU bars of small
 solider heads, up to 11 hits, which mean the maximal accuracy improvement
 in a mission. To increase it you must manually right click on the fired
 weapon after every successful hit when you heard grunt from the enemy.
 Press middle click on the weapon if you want undo a mistaken right click.

-Skill specific hit counters will increase also. Color is green from 4 hits
 due to more hits will not give more xp using the same skill within a mission.

-Stength, Speed and Mind skill bars are added to selectedSoldier panel.
 Exact skill value is displayed also if the mouse is over a bar.

-Accuracy percent with the current weapon is added into the top right
 corner over the weapon (middle value between accuracy and weapon skill).

-Aliens button draw lines to all visible aliens at once when clicked,
 right click show previous alien.

-Crouch button right click toggle 3TU reserve.

-Maximum of TU and HP bars are rased to the maximal possible values.

-HUD alignment is selectable from left, center, right and rightmost using
 the mouse wheel in settings button.

-Hide the whole HUD with right click on the settings button for screenshots.

-New compact lookout. :)


How to install

Extract the zip file into your personal "base" folder, which is
~/.ufoai/2.5/base in Linux, in Windows it is where you installed the game,
for example C:\Program Files\UFOAI-2.5\base\ .
Then start the game, select Options, Gameplay and change HUD Design to
Lazy HUD v2.

In details this you should copy the ufos/ui/hud_lazy2.ufo file into
~/.ufoai/2.5/base/ufos/ui in Linux, in Windows for example
C:\Program Files\UFOAI-2.5\base\ufos\ui, moreover all files from
pics/lazyhud2 folder into base/pics/lazyhud2 folder.


Optional files

The pics/hud- folder contain images for the default hud without
the thick border decorations. To enable it copy the content also
and remove the "-" sign from the "hud-" folder, so rename to "hud".
This is the way to clear the borders around inventory and physical
stats windows in LazyHUD due to affect both HUDs.

The previous subverisons of hud_lazy2.ufo are named to .ufo-xx,
these are here just for historical reasons but do nothing.


A known problem in Ufoai 2.5 only

Wounds displayed on the head models of soliders are not updated right at
medikit usage in Ufoai 2.5, due to need an event handler which is
introduced in 2.6. In 2.5 a sure way to update the wounds of all soliders
is to move the mouse into the info box of the selected solider and roll
the wheel through the whole team.



Changelog

v2.21
-Mouse wheel change solider on belt, holster, backpack and most buttons.
 Middle click popup the inventory window on these and on floor container.
-Default alignment of HUD is centered better when there are at least 10
 soliders on board. This help to the fixed buttons in the bottom right
 corner do not cover the reaction fire icon of the secondary weapon.
-Click on reactionfire shield next to a fire mode select this mode
 to check the reaction shield at bottom also.
-Clear reactionfire points from main shield button when change solider.
-Fixes in bleeding display for Ufoai v2.6.
-Source code simplification.

v2.20
-Maximum of TU and HP bars are rased to the in-game maximums (59 and 255).
 This is needed due to I can not read the acual values when the HUD loads,
 just after a mouse event fired, causing no bar at all if the first solider
 start with more points than a lower maximum.
-Added even more call of update_max_hp_tu for a bit better support in the
 case when you lower these maximums in confunc hudenable to get longer
 bars with rookie soliders, but in this case you should raise back when
 the best solider step over it else the bar will not be shown instantly at
 the start of missions, just after the first mouseover or similar events.

v2.19
-Skill specific hit counters appear on small solider heads also to help in
 checking through the team which solider should make more hits.
 Now the selected solider panel show these also below each other.
-Accuracy skill value is white, weapon skill bars got cyan color.
-Big red numbers on heads show the sum of bleeding wounds on all body parts.
-The hud_updateactorwounds called in many places as an attempt to reduce
 the bug when the wounds displayed on the heads of soliders are not updated
 right at medikit usage. This affect Ufoai 2.5 only due to an event handler
 which is introduced in Ufoai 2.6 can solve this.
-Maximum of skill specific hit counters is raised to 11. Will show * over 9
 on the small heads due to no room for more than a single character there.
 Color of these numbers will change to green from 4 due to more hits using
 the same skill will not give more xp for the same solider within a mission.
-Skills of new weapons in Weapon mod of AntJam are added to the list.

v2.18
-Max. values of TU, HP morale and stun bars are increased dynamically.
-Accuracy percent with the current weapon is added into the top right
 corner over the weapon (middle value between accuracy and weapon skill).
-Hit counters now cleared properly between missions.

v2.17
-Mouse wheel on skill specific hit counter in the top left corner on weapon
 can temporary change the skill to be able to check the counters of other
 skills.
-Debug panel is added to middle click on settings button. This display
 the values of cvars and node properties which can help to fix problems.
-Bugfix against "can't remove static nodes in actions@removeAllChild":
 due to removeChild does not work, now not create new child when exist.
-Improvements in hit counter codes.

v2.16
-Skill specific hit counters added, up to 4 hits for each skills.
 Due to the skill of a weapon is not queryable, an internal skill lookup
 list is added for the known weapons. But any new weapons added in the
 future will need additional lines.
 Grenade launcher need an additional manual change of skill type via
 right click in the number in the top left corner over the weapon picture
 if loaded with flechettes, which use close skill and not explosives
 due to the script currently can not read the type of the loaded ammo.

v2.15
-Fixed a bug when ammo is in hand.
-Fixes for the reactionfire TU display.

v2.14
-Fixes for the hit counter feature.

v2.13
-Hit counter is added to selected solider panel and over TU bars of small
 solider buttons, up to 11 hits. To increase it you must manually right click
 on the fired weapon after every successful hit, when you heard "argh".
 Press middle click on the weapon if you want undo a mistaken right click.
-HUD position is refined for each number of solders from 1 to 16.

v2.12
-HUD alignment is adjustable with wheel on menu button instead of moveZone.
-Code cleanup.

v2.11
-Autohide removed, floor is over buttons.
-The small solider team buttons are rearranged into a single long line.
-No next music button, use right click on menu button instead.
-Rightmost HUD alignment is added.

v2.10
-Menu, round and zone buttons are moved to the bottom right corner.

v2.09
-Change solider with mouse wheel on skill bars also.
-Better reactionfire button handler.
-A help for double shot fire mode, gray it out if only one ammo left.

v2.08
-Show numeric value of bleeding next to body part icons.
-Unhide a bit ealier near the bottom of screen.

v2.07
-Show numeric value of skill bar when pointed with mouse in solider panel.
-Better handling of hidden hud.
-Backpack lookout is changed a bit.

v2.06
-Fixes on alingment, hide and autohide features.
-Lookout adjustments.

v2.05
-HUD alignment to right is available.
-Lookout fixes.

v2.04
-Changed numbers on small solider panels to less by one to fit with hotkeys.
-Alignment of HUD is adjustable with mouse wheel also.
-Compact lookout with smaller buttons.
-Unhide over stun bar also.

v2.03
-Fix of autohide to do not clash with HUD alignment.
-Unhide is called on TU bar also.
-Anoher rename (actionListener2) to do not clash with lazyHUD v1.

v2.02
-Many HUD items are placed on autohide panel which slide up/down at the bottom.
 Vertical position is adjustable with mouse wheel on resque zone button.
 Right click on nextMusic button can toggle autohide.
-Hide the whole HUD with right click on the settings button for screenshots.
 Only a small "hud" button will be on screen which will show the HUD again.

v2.01
-Stength, speed and mind bars are added to selectedSoldier panel.
-Aliens button draw lines to all visible aliens at once,
 right click show previous alien.
-Crouch button right click and wheel toggle 3TU reserve.
-Weapon left click execute action (aiming crosshairs) as well as right click.
-TU bar background color changed to black.
-Smaller head models.
-Toggle alignment of HUD to left or center with right click on resqzone button.
-Fix a bug which bring up settings screen at every second solider selection.
-Fix reactionfire button to stay inactive when only 3TU is reserved for crouch.
-Components are renamed (like cmpAction2) to works in parallel with lazyHUD v1.


I hope you will enjoy the features of Lazy HUD v2. :)

License: CC BY-NC-SA 4.0

Norby
« Last Edit: March 12, 2017, 11:42:20 pm by Norby »