NetworkAdapterTest im Skin erstellen
Version vom 7. September 2013, 22:12 Uhr von Mfgeg (Diskussion | Beiträge)
An diesem Artikel wird derzeit gearbeitet. Achtung: Der Artikel kann unvollständig und fehlerhaft sein! |
Inhaltsverzeichnis
Einleitung
Der Screen name="NetworkAdapterTest" ist wie folgt zu finden:
- Menü -> Einstellungen -> System -> Netzwerk -> "Netzwerk Test"
NetworkAdapterTest im Defaultskin
Im OE 2.0 Default-HD skin ist dieser Abschnitt so dargestellt:
<screen name="NetworkAdapterTest" position="center,120" size="820,520" title="Network test..." > <ePixmap pixmap="Default-HD/buttons/red.png" position="10,5" size="200,40" alphatest="on"/> <ePixmap pixmap="Default-HD/buttons/green.png" position="210,5" size="200,40" alphatest="on"/> <ePixmap pixmap="Default-HD/buttons/yellow.png" position="410,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"/> <widget source="key_green" render="Label" position="210,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" shadowColor="black" shadowOffset="-2,-2"/> <widget source="key_yellow" render="Label" position="410,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#a08500" transparent="1" shadowColor="black" shadowOffset="-2,-2"/> <eLabel position="10,50" size="800,1" backgroundColor="grey"/> <widget name="Adaptertext" position="20,63" size="500,25" font="Regular;22"/> <widget name="Adapter" position="20,94" size="500,25" font="Regular;21" foregroundColors="#8c8c93,#f23d21,#1cff1c"/> <widget name="AdapterInfo_OK" position="540,74" size="38,31" pixmap="skin_default/icons/lock_on.png" alphatest="on"/> <widget name="AdapterInfo" position="600,70" size="200,40" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="AdapterInfo_Text" position="600,70" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" foregroundColors="#200d1940,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <eLabel position="10,128" size="800,1" backgroundColor="grey"/> <widget name="Networktext" position="20,141" size="500,25" font="Regular;22"/> <widget name="Network" position="20,172" size="500,25" font="Regular;21" foregroundColors="#8c8c93,#f23d21,#1cff1c"/> <widget name="NetworkInfo_Check" position="540,152" size="38,31" pixmaps="skin_default/icons/lock_on.png,skin_default/icons/lock_error.png" alphatest="on"/> <widget name="NetworkInfo" position="600,148" size="200,40" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="NetworkInfo_Text" position="600,148" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" foregroundColors="#200d1940,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <eLabel position="10,206" size="800,1" backgroundColor="grey"/> <widget name="Dhcptext" position="20,219" size="500,25" font="Regular;22"/> <widget name="Dhcp" position="20,250" size="500,25" font="Regular;21" foregroundColors="#8c8c93,#f23d21,#1cff1c"/> <widget name="DhcpInfo_Check" position="540,230" size="38,31" pixmaps="skin_default/icons/lock_on.png,skin_default/icons/lock_error.png" alphatest="on"/> <widget name="DhcpInfo" position="600,226" size="200,40" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="DhcpInfo_Text" position="600,226" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" foregroundColors="#200d1940,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <eLabel position="10,284" size="800,1" backgroundColor="grey"/> <widget name="IPtext" position="20,297" size="500,25" font="Regular;22"/> <widget name="IP" position="20,328" size="500,25" font="Regular;21" foregroundColors="#8c8c93,#f23d21,#1cff1c"/> <widget name="IPInfo_Check" position="540,308" size="38,31" pixmaps="skin_default/icons/lock_on.png,skin_default/icons/lock_error.png" alphatest="on"/> <widget name="IPInfo" position="600,304" size="200,40" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="IPInfo_Text" position="600,304" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" foregroundColors="#200d1940,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <eLabel position="10,362" size="800,1" backgroundColor="grey"/> <widget name="DNStext" position="20,375" size="500,25" font="Regular;22"/> <widget name="DNS" position="20,406" size="500,25" font="Regular;21" foregroundColors="#8c8c93,#f23d21,#1cff1c"/> <widget name="DNSInfo_Check" position="540,386" size="38,31" pixmaps="skin_default/icons/lock_on.png,skin_default/icons/lock_error.png" alphatest="on"/> <widget name="DNSInfo" position="600,382" size="200,40" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="DNSInfo_Text" position="600,382" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" foregroundColors="#200d1940,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <eLabel position="10,440" size="800,1" backgroundColor="grey"/> <widget name="EditSettingsButton" position="600,455" size="200,50" pixmaps="Default-HD/buttons/netsel.png,Default-HD/buttons/netselpressed.png" alphatest="on"/> <widget name="EditSettings_Text" position="600,455" size="200,50" zPosition="1" font="Regular;18" halign="center" valign="center" foregroundColors="#ffffff,#cccccc,#ffffff" backgroundColor="background" transparent="1"/> <widget name="InfoTextBorder" position="10,50" size="580,391" zPosition="20" pixmap="Default-HD/border_info.png"/> <widget name="InfoText" position="20,60" size="560,371" zPosition="21" font="Regular;21" halign="center" valign="center"/> </screen>
NetworkAdapterTest im BlueDreamHD
Hier die Variante ich ich für den BlueDreamHD ausgearbeitet habe.
<!-- Network adapter test --> <screen name="NetworkAdapterTest" position="center,center" size="1100,625" title="Network test" 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="Network test" 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"/> <!-- Buttons & Keycode --> <ePixmap pixmap="BlueDreamHD/buttons/red.png" position="55,595" size="25,25" alphatest="on"/> <ePixmap pixmap="BlueDreamHD/buttons/green.png" position="340,595" size="25,25" alphatest="on"/> <ePixmap pixmap="BlueDreamHD/buttons/yellow.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;24" halign="left" backgroundColor="background" transparent="1" /> <widget source="key_green" render="Label" position="385,595" zPosition="1" size="200,25" font="Regular;24" halign="left" backgroundColor="background" transparent="1" /> <widget source="key_yellow" render="Label" position="635,595" zPosition="1" size="200,25" font="Regular;24" halign="left" backgroundColor="background" transparent="1" /> <!-- NetworkPicture "big one" --> <ePixmap position="30,300" size="250,250" pixmap="BlueDreamHD/menu/knetwalk250x250.png" alphatest="on"/> <widget name="Adaptertext" position="330,60" size="400,30" zPosition="1" font="Regular;28" backgroundColor="background" transparent="1" /> <widget name="Adapter" position="330,90" size="400,28" zPosition="1" font="Regular;26" foregroundColors="lightgrey,red,foreyellow" backgroundColor="background" transparent="1" /> <widget name="AdapterInfo_OK" position="790,70" size="36,36" pixmap="BlueDreamHD/buttons/green.png" zPosition="2" alphatest="blend" /> <widget name="AdapterInfo_Text" position="830,70" size="200,36" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="lightgrey,white" backgroundColor="background" transparent="1" /> <widget name="AdapterInfo" position="830,70" size="200,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="1" alphatest="on" /> <ePixmap pixmap="BlueDreamHD/selpic.png" position="330,135" size="680,2" zPosition="1" alphatest="on" /> <widget name="Networktext" position="330,150" size="400,30" zPosition="1" font="Regular;28" backgroundColor="background" transparent="1" /> <widget name="Network" position="330,180" size="400,28" zPosition="1" font="Regular;26" foregroundColors="lightgrey,red,foreyellow" backgroundColor="background" transparent="1" /> <widget name="NetworkInfo_Check" position="790,160" size="36,36" pixmaps="BlueDreamHD/buttons/green.png,BlueDreamHD/buttons/red.png" zPosition="2" alphatest="blend" /> <widget name="NetworkInfo_Text" position="830,160" size="200,36" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="lightgrey,white" backgroundColor="background" transparent="1" /> <widget name="NetworkInfo" position="830,160" size="200,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="1" alphatest="on" /> <ePixmap pixmap="BlueDreamHD/sep750.png" position="330,225" size="680,2" zPosition="1" alphatest="on" /> <widget name="Dhcptext" position="330,240" size="400,30" zPosition="1" font="Regular;28" backgroundColor="background" transparent="1" /> <widget name="Dhcp" position="330,270" size="400,28" zPosition="1" font="Regular;26" foregroundColors="lightgrey,red,foreyellow" backgroundColor="background" transparent="1" /> <widget name="DhcpInfo_Check" position="790,250" size="36,36" pixmaps="BlueDreamHD/buttons/green.png,BlueDreamHD/buttons/red.png" zPosition="2" alphatest="blend" /> <widget name="DhcpInfo_Text" position="830,250" size="200,36" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="lightgrey,white" backgroundColor="background" transparent="1" /> <widget name="DhcpInfo" position="830,250" size="200,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="1" alphatest="on" /> <ePixmap pixmap="BlueDreamHD/sep750.png" position="330,315" size="680,2" zPosition="1" alphatest="on" /> <widget name="IPtext" position="330,330" size="400,30" zPosition="1" font="Regular;28" backgroundColor="background" transparent="1" /> <widget name="IP" position="330,360" size="400,28" zPosition="1" font="Regular;26" foregroundColors="lightgrey,red,foreyellow" backgroundColor="background" transparent="1" /> <widget name="IPInfo_Check" position="790,340" size=" 36,36" pixmaps="BlueDreamHD/buttons/green.png,BlueDreamHD/buttons/red.png" zPosition="2" alphatest="blend" /> <widget name="IPInfo_Text" position="830,340" size="200,36" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="lightgrey,white" backgroundColor="background" transparent="1" /> <widget name="IPInfo" position="830,340" size="200,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="1" alphatest="on" /> <ePixmap pixmap="BlueDreamHD/sep750.png" position="330,400" size="680,2" zPosition="1" alphatest="on" /> <widget name="DNStext" position="330,410" size="400,30" zPosition="1" font="Regular;28" backgroundColor="background" transparent="1" /> <widget name="DNS" position="330,440" size="400,28" zPosition="1" font="Regular;26" foregroundColors="lightgrey,red,foreyellow" backgroundColor="background" transparent="1" /> <widget name="DNSInfo_Check" position="790,420" size=" 36,36" pixmaps="BlueDreamHD/buttons/green.png,BlueDreamHD/buttons/red.png" zPosition="2" alphatest="blend" /> <widget name="DNSInfo_Text" position="830,420" size="200,36" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="lightgrey,white" backgroundColor="background" transparent="1" /> <widget name="DNSInfo" position="830,420" size="200,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="1" alphatest="on" /> <ePixmap pixmap="BlueDreamHD/sep750.png" position="330,485" size="680,2" zPosition="1" alphatest="on" /> <widget name="EditSettings_Text" position="660,505" size="400,35" zPosition="2" font="Regular;28" halign="center" valign="center" foregroundColors="white" backgroundColor="background" transparent="1" /> <widget name="EditSettingsButton" position="660,505" size="400,35" pixmaps="BlueDreamHD/sel_bg.png,BlueDreamHD/selpic.png" zPosition="2" alphatest="on" /> <widget name="InfoText" position="330,60" size="700,490" zPosition="15" font="Regular;28" valign="center" halign="center" /> </screen>
NetworkAdapterTest im Vergleich
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