AdapterSetup im Skin erstellen

Aus Gemini-Wiki
Version vom 12. Februar 2013, 12:13 Uhr von EgLe (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Kategorie:Enigma2 Kategorie:Skin Kategorie:Anleitungen Kategorie:Grundlagen {{Baustelle|An diesem Artikel wird derzeit gearbeitet. Achtung: De…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen


Baustelle.png An diesem Artikel wird derzeit gearbeitet. Achtung: Der Artikel kann unvollständig und fehlerhaft sein!


Einleitung

Der Screen name="AdapterSetup" ist wie folgt zu finden:

  • Menü -> Einstellungen -> System -> Netzwerk -> "Adapter-Einstellungen"


AdapterSetup im Defaultskin

Im OE 2.0 Default-HD skin ist dieser Abschnitt so dargestellt:

	<!-- Network setup -->
	<screen name="AdapterSetup" position="center,120" size="820,520" title="Network Setup">
		<ePixmap pixmap="Default-HD/buttons/red.png" position="10,5" size="200,40" alphatest="on" />
		<widget source="key_red" render="Label" position="10,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" shadowColor="black" shadowOffset="-2,-2" />
		<!-- <ePixmap pixmap="Default-HD/buttons/blue.png" position="610,5" size="200,40" alphatest="on" />
		<widget source="key_blue" render="Label" position="610,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#18188b" transparent="1" shadowColor="black" shadowOffset="-2,-2" /> -->
		<eLabel position="10,50" size="800,1" backgroundColor="grey" />
		<widget name="config" position="10,60" size="800,210" itemHeight="30" scrollbarMode="showOnDemand" />
		<eLabel position="10,270" size="800,1" backgroundColor="grey" />
		<widget source="introduction" render="Label" position="10,296" size="800,25" font="Regular;22" halign="center" />
		<widget source="IPtext" render="Label" position="220,324" size="230,24" font="Regular;20" valign="center" />
		<widget source="IP" render="Label" position="450,324" size="230,24" font="Regular;20" valign="center" />
		<widget source="Netmasktext" render="Label" position="220,348" size="230,24" font="Regular;20" valign="center" />
		<widget source="Mask" render="Label" position="450,348" size="230,24" font="Regular;20" valign="center" />
		<widget source="Gatewaytext" render="Label" position="220,372" size="230,24" font="Regular;20" valign="center" />
		<widget source="Gateway" render="Label" position="450,372" size="230,24" font="Regular;20" valign="center" />
		<widget source="DNS1text" render="Label" position="220,398" size="230,24" font="Regular;20" valign="center" backgroundColor="#20062748" transparent="1" />
		<widget source="DNS1" render="Label" position="450,398" size="230,24" font="Regular;20" valign="center" backgroundColor="#20062748" transparent="1" />
		<widget source="DNS2text" render="Label" position="220,424" size="230,24" font="Regular;20" valign="center" backgroundColor="#20062748" transparent="1" />
		<widget source="DNS2" render="Label" position="450,424" size="230,24" font="Regular;20" valign="center" backgroundColor="#20062748" transparent="1" />
		<eLabel position="10,450" size="800,1" backgroundColor="grey" />
		<widget source="Adaptertext" render="Label" position="10,460" size="120,25" font="Regular;22" halign="left" transparent="1" />
		<widget source="Adapter" render="Label" position="120,460" size="400,25" font="Regular;22" halign="left" transparent="1" />
		<widget source="introduction2" render="Label" position="10,488" size="800,25" font="Regular;22" halign="center" valign="center" transparent="1" />
		<widget source="VKeyIcon" render="Pixmap" position="730,485" size="70,30" pixmap="Default-HD/icons/text.png" alphatest="blend">
			<convert type="ConditionalShowHide" />
		</widget>
		<widget name="HelpWindow" position="338,440" zPosition="1" size="1,1" transparent="1" />
	</screen>



AdapterSetup im BluedreamHD

Hier die Variante ich ich für den BlueDreamHD ausgearbeitet habe.

	<!-- Adapter setup -->
	<screen name="AdapterSetup" position="center,center" size="1100,625" title="Adapter settings" flags="wfNoBorder" >
 
		<!-- Background -->
		<ePixmap position="0,0" size="1100,625" zPosition="-5" pixmap="BlueDreamHD/bg_1100x625.png"/>
		<eLabel  position="10,46" size="1080,540" zPosition="-1" backgroundColor="#200d1940"/>
 
		<!-- Title & Titelicon -->
		<eLabel text="Adapter settings" position="35,8" size="1030,30" halign="center" font="Regular;29" backgroundColor="background" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<ePixmap position="1030,5" size="32,32" pixmap="BlueDreamHD/menu/knetwalk32x32.png" alphatest="on"/>
 
 
		<!-- Selpictures & Configlistbox -->
		<ePixmap pixmap="BlueDreamHD/sep750.png" position="25,130" zPosition="1" size="635,2" alphatest="on" />
		<widget name="config" position="25,150" size="635,244" scrollbarMode="showOnDemand" itemHeight="32" selectionPixmap="BlueDreamHD/selpic.png" transparent="1" />
		<ePixmap pixmap="BlueDreamHD/sep750.png" position="25,412" zPosition="1" size="635,2" alphatest="on" />
 
		<widget source="DNS1text" render="Label" position="700,345" size="330,28" zPosition="1" font="Regular;27" halign="center" valign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget source="DNS2text" render="Label" position="700,425" size="330,28" zPosition="1" font="Regular;27" halign="center" valign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget source="DNS1" render="Label" position="700,380" size="330,28" zPosition="1" font="Regular;27" halign="center" valign="center" backgroundColor="background" transparent="1"/>
		<widget source="DNS2" render="Label" position="700,460" size="330,28" zPosition="1" font="Regular;27" halign="center" valign="center" backgroundColor="background" transparent="1"/>
 
		<ePixmap position="700,60" size="330,35" pixmap="BlueDreamHD/selpic.png" /> 
		<widget source="introduction" render="Label" position="700,60" size="330,30" zPosition="1" font="Regular;27" halign="center" backgroundColor="background" transparent="1" />
		<widget source="IPtext" render="Label" position="700,105" size="330,28" zPosition="1" font="Regular;27" halign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget source="Netmasktext" render="Label" position="700,185" size="330,28" zPosition="1" font="Regular;27" halign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget source="Gatewaytext" render="Label" position="700,265" size="330,28" zPosition="1" font="Regular;27" halign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget source="IP" render="Label" position="700,140" size="330,28" zPosition="1" font="Regular;27" halign="center" transparent="1"/>
		<widget source="Mask" render="Label" position="700,220" size="330,28" zPosition="1" font="Regular;27" halign="center" transparent="1"/>
		<widget source="Gateway" render="Label" position="700,300" size="330,28" zPosition="1" font="Regular;27" halign="center" transparent="1"/>
 
		<widget source="Adaptertext" render="Label" position=" 20,60" size="150,30" zPosition="10" font="Regular;28" halign="left" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1" />
		<widget source="Adapter" render="Label" position="170,60" size="880,30" zPosition="10" font="Regular;28" halign="left" backgroundColor="background" transparent="1" />
		<widget source="introduction2" render="Label" position="25,450" size="635,28" zPosition="10" font="Regular;27" halign="center" valign="center" backgroundColor="background" foregroundColor="foreyellow" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<widget name="VKeyIcon" pixmap="BlueDreamHD/buttons/text.png" position="950,52" zPosition="10" size="80,34" transparent="1" />
		<widget name="HelpWindow" pixmap="skin_default/vkey_icon.png" position="155,475" zPosition="1" size="1,1" transparent="1" alphatest="on" />
 
		<!-- Buttons & Keycode -->
		<ePixmap pixmap="BlueDreamHD/buttons/red.png" position="55,595" size="25,25" alphatest="on"/>
		<ePixmap pixmap="BlueDreamHD/buttons/blue.png" position="585,595" size="25,25" alphatest="on"/>
		<widget source="key_red" render="Label" position="105,595" zPosition="1" size="200,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
		<widget source="key_blue" render="Label" position="635,595" zPosition="1" size="250,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
	</screen>


AdapterSetup im Vergleich

AdapterSetup im Skin Default-HD des OE2.0
AdapterSetup im Skin BluedreamHD des OE2.0



Kurzerklärung der XML

  • Wie man hier erkennen kann wird mittels dem Aussdruck "ePixmap pixmap" ein Grafik geladen.
  • Mittels dem Ausdruck "zPosition" können wir die Grafiken auch in unterschiedlichen Ebenen über oder Untereinander gelegt darstellen lassen