help-liquidwar6
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-liquidwar6] Visual tuning of the floating HUD


From: Kasper Hviid
Subject: [Help-liquidwar6] Visual tuning of the floating HUD
Date: Mon, 5 Oct 2009 16:08:19 +0200

2009/10/4 Christian Mauduit <address@hidden>:
> - visual tuning. Many visual "effects" can be tuned. I wrote a short
> passage on this :
> http://www.gnu.org/software/liquidwar6/manual/html_node/Advanced-tweaking.html
>
> I'm insisting on this because the new "health circles" at the bottom-right
> corner probably need fine-tuning. For instance in the
> data/gfx/gl/hud/floating/gl-floating-const.xml file you'll find this :
>  <float key="gauge-relative-bg-inner" value="0.36" />
>  <float key="gauge-relative-bg-outer" value="0.48" />
>  <float key="gauge-relative-fg-inner" value="0.38" />
>  <float key="gauge-relative-fg-outer" value="0.46" />
> Those values define the size of the circles. fg (foreground) is the
> colored part, and bg is the background and uses the texture
> data/gfx/gl/hud/floating/image/marble.jpeg Anything can be modified.
> There's probably a bit of trials and errors before finding out the right
> texture with the right sizes. The current setting is OK (at least, I like
> it) but I admit it's a bit raw and doesn't match the screenshots submitted
> by Tim.

I have played a bit around with gl-floating-const.xml, and there is
quite a few posibilities! For instance, it seems quite easy to create
some fixed-size bubbles with text display only. There could easily be
several different floating HUD's to choose from.

One thing i noticed was that it was imposible to determine how
marble.jpeg will be colorized -- the contrast between dark and light
will vary alot, and it will sometimes be inverted, so that what is
dark in marble.jpeg will end up being light. Perhaps the best bet
would be some kind of abstract, decorative graphic.

Below is a commented version of data/gfx/gl/hud/floating/gl-floating-const.xml
(The only thing I don't understand is gauge-loops and gauge-blink-period,)


<?xml version="1.0"?>
<liquidwar6>

 <!-- The clock values below is used for the countdown timer in the
upper right: -->

  <float key="clock-y1" value="-0.01" /><!-- Y POSITION OF THE TIMER
default: -0.01 -->
  <float key="clock-x2" value="0.98" /><!-- X POSITION OF THE TIMER
default: 0.98 -->

  <float key="clock-size" value="0.05" /><!-- The size of the text
default: 0.05 -->
  <float key="clock-dw" value="0.0025" /><!-- The text drop shadow's
x-distance   default: 0.0025 -->
  <float key="clock-dh" value="0.0025" /><!-- The text drop shadow's
y-distance   default: 0.0025 -->

  <!-- "bg" is the background - it uses the 128x128 px texture "marble.png" -->

  <float key="gauge-relative-bg-inner" value="0.36" />  <!-- default:
0.36 - I have set it to 0.01 if I want to hide the hole -->
  <float key="gauge-relative-bg-outer" value="0.48" />  <!-- default: 0.48 -->

   <!-- "fg" is the forground - the part which shows the color: -->

  <float key="gauge-relative-fg-inner" value="0.38" /><!-- default: 0.38 -->
  <float key="gauge-relative-fg-outer" value="0.46" /><!-- default: 0.46 -->

  <!-- and here we have the text: -->

  <float key="gauge-relative-text-size" value="0.40" /><!-- The size
of the text   default: 0.40 -->
  <float key="gauge-relative-text-dw" value="0.02" /><!-- The text
drop shadow's x-distance   default: 0.02 -->
  <float key="gauge-relative-text-dh" value="0.02" /><!-- The text
drop shadow's y-distance   default: 0.02 -->

  <int key="gauge-slices" value="20" /><!-- How many lines the
"circle" shall consist of. The value 4 makes it into a square with an
extra leg   default: 20 -->
  <int key="gauge-loops" value="1" /><!-- default: 1 -->
  <float key="gauge-start" value="-45.0" /><!-- The start angle of the
gauge, 0 is at the 6 o'clock    default: -45.0 -->
  <float key="gauge-sweep" value="-270.0" /><!-- The end angle of the
gauge, -360 is at the 6 o'clock    default: -270.0 -->

  <float key="gauge-min-size" value="0.05" /><!-- default: 0.05 -->
  <float key="gauge-max-size" value="0.15" /><!-- default: 0.15 -->
  <float key="gauge-max-health-angle" value="1" /><!-- Looks like it
is the gradient of the health. Set it to 1 if you don't want any
gradient effect   default: 240 -->
  <int key="gauge-blink-period" value="4000" /><!-- Don't know what it
does. Lower value = less smooth look.   default: 4000 -->
</liquidwar6>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]