XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Skin Development

Skin Development GUI and Web skins/themes, graphics development and suggestions.
No End-User Support Requests! Only skinners and graphic artists.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-04-22, 04:18   #1
webMASTER_P
Senior Member
 
Join Date: Mar 2004
Posts: 142
webMASTER_P is on a distinguished road
Default

i am screwing around with skinning a bit, and i can't figure one thing out
in the following tag:
Quote:
<control>
<description>drive f: text label</description>
<type>label</type>
<id>13</id>
<posx>100</posx>
<posy>425</posy>
<label>155</label>
<font>font13</font>
<textcolor>ffb2d4f5</textcolor>
</control>
what is <label>155</label> ?
i am assuming that this is what defines the actual appearace, but where is that stored?
thanks!
webMASTER_P is offline   Reply With Quote
Old 2004-04-22, 04:24   #2
jmarshall
Team-XBMC Developer
 
Join Date: Oct 2003
Posts: 15,070
jmarshall is on a distinguished road
Default

it's a reference to which string should be used for the text. the strings are found in the language\xxx\strings.xml file, where xxx is the local language to use. this allows localization of xbmc.

ie label number 155 refers to the string "drive" in english.
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


jmarshall is offline   Reply With Quote
Old 2004-04-22, 04:33   #3
webMASTER_P
Senior Member
 
Join Date: Mar 2004
Posts: 142
webMASTER_P is on a distinguished road
Default

oh, ok, that makes sence
then where is the actual tag that show the remaining space of the drive?
webMASTER_P is offline   Reply With Quote
Old 2004-04-22, 05:51   #4
jmarshall
Team-XBMC Developer
 
Join Date: Oct 2003
Posts: 15,070
jmarshall is on a distinguished road
Default

the remaining space on the drive is calculated and displayed. then label number 160 is displayed. if it can't calculate the free space, then label number 161 is displayed.

i found this out by examining the source code for this window (guiwindowsysteminfo.cpp)
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


jmarshall is offline   Reply With Quote
Old 2004-04-22, 14:42   #5
webMASTER_P
Senior Member
 
Join Date: Mar 2004
Posts: 142
webMASTER_P is on a distinguished road
Default

ok, thanks, looks like i will have to dig in the code myself a bit

so to confirm, i can't just take the remaining hd space and display it in another window? like home.xml? or is there a way to do it (without modifying the code of cource)
webMASTER_P is offline   Reply With Quote
Old 2004-04-22, 18:01   #6
Nickman
Fan
 
Nickman's Avatar
 
Join Date: Oct 2003
Location: Sweden
Posts: 467
Nickman is on a distinguished road
Default

Quote:
Originally Posted by (webmaster_p @ april 22 2004,12:42)
ok, thanks, looks like i will have to dig in the code myself a bit

so to confirm, i can't just take the remaining hd space and display it in another window? like home.xml? or is there a way to do it (without modifying the code of cource)
ofcource you can..
just modify home.xml and add the right info there.

eg.

<control>
<description>drive f: text label</description>
<type>label</type>
<id>13</id>
<posx>100</posx>
<posy>425</posy>
<label>155</label>
<font>font13</font>
<textcolor>ffb2d4f5</textcolor>
</control>
__________________
  • Xbox v1.3, 64MB, 120GB HD.
  • ASRock ION 330 Ubuntu XBMC.
  • 40" HDTV 720p, AC3/DTS Receiver.
Read the xbmc online-manual, faq and search the forums before posting.
Nickman is offline   Reply With Quote
Old 2004-04-22, 18:23   #7
webMASTER_P
Senior Member
 
Join Date: Mar 2004
Posts: 142
webMASTER_P is on a distinguished road
Default

well, crap!
i was trying to that yesterday for over an hour and never got it to work
i'll give it a shot when i get home tonight

this is giving me some good ideas for a skin *

thanks a lot for the help!
webMASTER_P is offline   Reply With Quote
Old 2004-04-23, 00:42   #8
jmarshall
Team-XBMC Developer
 
Join Date: Oct 2003
Posts: 15,070
jmarshall is on a distinguished road
Default

nope, you can't.

the freespace is calculated in the code, so you'll need to transplant the code into guiwindowhome.cpp as well.

the labels will only give you the words "drive" and "free space".
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


jmarshall is offline   Reply With Quote
Old 2004-04-23, 01:00   #9
webMASTER_P
Senior Member
 
Join Date: Mar 2004
Posts: 142
webMASTER_P is on a distinguished road
Default

jmarshall, thanks
i was about to attempt to do that again, so you saved me another headache
webMASTER_P is offline   Reply With Quote
Old 2004-06-24, 12:29   #10
astateofblank
Junior Member
 
Join Date: Jun 2004
Posts: 2
astateofblank is on a distinguished road
Default

to me this seems like a huge disadvantage that should be corrected. i use xbmc as my dashboard and sorely miss this information on the main page like you get with most other dashboards. i spent many hours trying to figure out how to get the information from the system info page on the home page only to be disappointed upon finding this post...it is, in the end, what has made me decide to stop working on the skin i was creating...what is the point if i can't rearrange everything i don't like?
astateofblank is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labels and Buttons morte0815 Skin Development 1 2006-07-18 01:30
Remove Directory Labels SleepyP XBMC Feature Suggestions 0 2006-06-12 04:30
LCD Info Labels smiley1244 XBMC for Xbox Specific Support 4 2006-02-16 10:37
Labels on overlays ? bakman Plugin/Script (Python) Development 2 2005-04-26 11:19


All times are GMT +2. The time now is 22:48.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project