PDA

View Full Version : Adding ip addy & hdd freespace to a fadelabel


RocafellaSqualie
2005-07-27, 22:22
hi

i want to do a little edit to project mayhem iii's file manager. what i would like to do is add a fadelabel for the ip address and the hard drive's freespaces like so:

<control>
<description>system stats</description>
<id>0</id>
<type>fadelabel</type>
<width>535</width>
<posx>95</posx>
<posy>513</posy>
<label>$info(network.ipaddress) | system.freespace&copy; | system.freespace(e) | system.freespace(f) | system.freespace(g)</label>
<font>font10</font>
</control>

the problem is, the ip address shows correctly but the freespaces don't. i tried adding $info( ) to them but nothing will show.

could someone please correct anything that may be wrong with the tag above?

thanks

*no, i didn't add that copyright sign, it was changed automatically while posting this :)

Chokemaniac
2005-07-27, 23:23
dont use label controls

use

<info>info1</info>
<info>info2</info>
<info>info3</info>

in a fadelabel and youll be good

pike
2005-07-28, 04:54
*no, i didn't add that copyright sign, it was changed automatically while posting this :)
(tm)


(c)
©

:idea:

RocafellaSqualie
2005-07-28, 10:58
:d @ pike

thanks chokeman, it worked perfectly! :kickass:

Nuka1195
2005-07-28, 15:22
this is from musicoverlay.xml.

<control>
<description>album/artist/genre etc info label</description>
<type>fadelabel</type>
<width>130</width>
<posx>65</posx>
<posy>525</posy>
<font>font10</font>
<id>0</id>
<label>$info(musicplayer.artist) - $info(musicplayer.title) - $info(musicplayer.album)</label>
</control>

RocafellaSqualie
2005-07-28, 17:57
that's what i tried at first but when using that method, the ip displays correctly but the freespace just shows what i put in there on my tv screen like so

ip:192.168.0.102 | system.freespace&copy; | system.freespace(e) | system.freespace(f) | system.freespace(g)

Nuka1195
2005-07-28, 18:19
ok, i think the ( and ) is causing you trouble, parselabel looks for the first occurrance of ) after $info( so it wouldn't have the right infotag.

i wonder if a better character to use would be [ and ] or { and }. maybe this could be a feature request.

you would need to enter it as $info(system.freespace(e))

so if they would change it to $info[system.freespace(e)] it would work.

jmarshall
2005-07-28, 19:27
have changed it so it uses

$info[blahblahblah]

sorry - no backwards compatibility.

RocafellaSqualie
2005-07-28, 22:34
sweet!

thanks guys for the help :)

jmarshall, is this addition already in the cvs earlier than today or was it just added meaning we have to wait for the cvs to update?

jmarshall
2005-07-28, 23:48
added at around 17:00 gmt today.