» Site Navigation | | | » Stats |
Members: 47,883
Threads: 82,524
Posts: 1,027,936
Top Poster: Peacemaker7 (3,025) | | Welcome to our newest member, nikemate | |  |
11-28-2007, 04:01 PM
|
#1 | | Junior Member
Join Date: Jan 1970
Posts: 2
Rep Power: 0 | Att: Radestock - some container probs?
Hi,
I'm still working on my Simplicity skin, but I have a problem. I want a container to be displayed on the horizontally center of the screen. That's no problem. But now I want to add a background to this container. How can I do that?
Right now I'm trying to add a picture within a widget inside the container, but it doesn't seem to work...
Like this:
<widget class="picture" id="pict" file="interface/titlebar/continue/bar" auto_size="vertical" cached="true">
<layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
</widget>
Hope that someone can help me fix this issue.
Thanks in advance!
|
| |
11-28-2007, 06:02 PM
|
#2 | | Member
Join Date: Jul 2003
Posts: 63
Rep Power: 6 |
Well, what you are wanting to do is very possible. Without knowing where and what you are doing it's difficult but I spsect you just havn't declared the layout properly within the centralised container/
Tips:
1. try the graphic outside of the container - if it works then you know that's the problem and not the graphic declaration
2. Have a look at how it's done elsewhere. Probably the best way to get anything working is to find it working somewhere else. I'm sure the header file is (or used to be) three containers horizonatally across the top. Try taking the layout declerations from that container and adding them to your's
3. Do other things work - can you get text to display? Can you get a fixed image to display rather than a scaling one?
Hope you get it working :thup:
|
| |
12-01-2007, 12:57 PM
|
#3 | | Junior Member
Join Date: Jan 1970
Posts: 2
Rep Power: 0 |
Hmm, I've tried some things, but can't figure out how to get to work. Here is the code:
<pre class="ip-ubbcode-code-pre"><container width="170"><layout class="stick_to_sides_attachment" alignment="vertical" inset="16"/><layout class="centre_in_parent_attachment" alignment="horizontal"/> <widget class="picture" id="pict" file="interface/titlebar/continue/bar" auto_size="vertical" cached="true"> <layout class="stick_to_sides_attachment" alignment="top" inset="0"/> </widget><widget class="action_button" id="back" appearance="button/custom/back/button" auto_size="all" > <attachment class="get_global_attachment" get_property="disp" set_property="disa"/> <attachment class="stick_to_sides_attachment" alignment="top" inset="64"/> <attachment class="stick_to_sides_attachment" alignment="left"/> <record id="click_event" event_id="GOTO" event_target="scrn" scin="-3"/> </widget><!-- Continue button --> <widget class="picture" id="pict" file="interface/titlebar/continue/bar"> <layout class="stick_to_sides_attachment" alignment="top" inset="0"/> <layout class="centre_in_parent_attachment" alignment="horizontal"/> </widget><widget class="text_button" text="Continue" standard_spec="title, small" auto_size="horizontal" colour="white"><layout class="centre_in_parent_attachment" alignment="horizontal"/><layout class="stick_to_sides_attachment" alignment="top" inset="66"/><record id="click_event" event_id="CONT" event_target="scrn"/><attachment class="test_global_attachment" get_property="cont" set_property="disa"><list id="value"><integer value="-8"/><integer value="-5"/></list></attachment><!-- match play text --><attachment class="get_global_attachment" get_property="cttx" set_property="text"/></widget> <widget class="action_button" id="forw" appearance="button/custom/next/button" auto_size="all"><attachment class="get_global_attachment" get_property="disn" set_property="disa"/> <attachment class="stick_to_sides_attachment" alignment="top" inset="64"/> <attachment class="stick_to_sides_attachment" alignment="right"/> <record id="click_event" event_id="GOTO" event_target="scrn" scin="-2"/> </widget></container> </pre>
I want, the picture to be placed behind the continue, back and next buttons, which are horizontally centered on the screen.
|
| |
12-03-2007, 01:09 PM
|
#4 | | Junior Member
Join Date: Dec 2007
Posts: 16
Rep Power: 0 | Re: Att: Radestock - some container probs? Quote:
Originally Posted by Weeelo Hmm, I've tried some things, but can't figure out how to get to work. Here is the code:
<pre class="ip-ubbcode-code-pre"><container width="170"><layout class="stick_to_sides_attachment" alignment="vertical" inset="16"/><layout class="centre_in_parent_attachment" alignment="horizontal"/> <widget class="picture" id="pict" file="interface/titlebar/continue/bar" auto_size="vertical" cached="true"> <layout class="stick_to_sides_attachment" alignment="top" inset="0"/> </widget><widget class="action_button" id="back" appearance="button/custom/back/button" auto_size="all" > <attachment class="get_global_attachment" get_property="disp" set_property="disa"/> <attachment class="stick_to_sides_attachment" alignment="top" inset="64"/> <attachment class="stick_to_sides_attachment" alignment="left"/> <record id="click_event" event_id="GOTO" event_target="scrn" scin="-3"/> </widget><!-- Continue button --> <widget class="picture" id="pict" file="interface/titlebar/continue/bar"> <layout class="stick_to_sides_attachment" alignment="top" inset="0"/> <layout class="centre_in_parent_attachment" alignment="horizontal"/> </widget><widget class="text_button" text="Continue" standard_spec="title, small" auto_size="horizontal" colour="white"><layout class="centre_in_parent_attachment" alignment="horizontal"/><layout class="stick_to_sides_attachment" alignment="top" inset="66"/><record id="click_event" event_id="CONT" event_target="scrn"/><attachment class="test_global_attachment" get_property="cont" set_property="disa"><list id="value"><integer value="-8"/><integer value="-5"/></list></attachment><!-- match play text --><attachment class="get_global_attachment" get_property="cttx" set_property="text"/></widget> <widget class="action_button" id="forw" appearance="button/custom/next/button" auto_size="all"><attachment class="get_global_attachment" get_property="disn" set_property="disa"/> <attachment class="stick_to_sides_attachment" alignment="top" inset="64"/> <attachment class="stick_to_sides_attachment" alignment="right"/> <record id="click_event" event_id="GOTO" event_target="scrn" scin="-2"/> </widget></container> </pre>
I want, the picture to be placed behind the continue, back and next buttons, which are horizontally centered on the screen. | That's how you make a skin! :O
|
| |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | » Online Users: 27 | | 0 members and 27 guests | | No Members online | | Most users ever online was 2,128, 07-21-2008 at 08:27 PM. | |
All times are GMT +1. The time now is 11:21 AM.