GoPal 5 Ändern der Schriftfarben: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: Kategorie:GoPal 5.x Skinning Anleitung zum „Ändern der Schriftfarben“ 1. Die neuen Wörter für die Farben müssen in die „Standard.de_DE.xml“ eingepfle...) |
|||
Zeile 7: | Zeile 7: | ||
Auszug aus der „Standard.de_DE.xml“: | Auszug aus der „Standard.de_DE.xml“: | ||
− | <text value="0#weiss" id="1690000000" type="STRING"/> | + | |
− | + | <text value="0#weiss" id="1690000000" type="STRING"/> | |
− | + | <text value="1#gelb" id="1690000001" type="STRING"/> | |
− | + | <text value="2#orange" id="1690000002" type="STRING"/> | |
− | + | <text value="3#rot" id="1690000003" type="STRING"/> | |
− | + | <text value="4#gruen" id="1690000004" type="STRING"/> | |
− | + | <text value="5#violett" id="1690000005" type="STRING"/> | |
− | + | <text value="6#blau" id="1690000006" type="STRING"/> | |
+ | <text value="7#schwarz" id="1690000007" type="STRING"/> | ||
Zeile 21: | Zeile 22: | ||
Auszug aus der „Standard.de_DE.xml“: | Auszug aus der „Standard.de_DE.xml“: | ||
− | <text value="Schriftfarbe" id="1680933401" type="STRING"/> | + | <text value="Schriftfarbe" id="1680933401" type="STRING"/> |
Zeile 28: | Zeile 29: | ||
Auszug aus der „pfskin.skn“ | Auszug aus der „pfskin.skn“ | ||
− | + | DropDownList_farbe_settings | |
− | + | { | |
− | + | ID: 3801159; | |
− | + | Class: SkinContainer; | |
− | + | Coordinates: 0,0,480,272; | |
− | + | Background: 62,0,0,480,192,0,32; | |
− | + | LongTapDownEvent: 2132606983; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | farbe_list | |
+ | { | ||
+ | ID: 3801161; | ||
+ | Class: ListBox; | ||
+ | Coordinates: 0,32,432,192; | ||
+ | TextColor: 255,255,255; | ||
+ | FocussedTextColor: 255,255,255; | ||
+ | HighlightedTextColor: 255,255,255; | ||
+ | TextSpace: 5; | ||
+ | BGColor: 100,100,100; | ||
+ | BGMode: opaque; | ||
+ | BorderColor: 0,0,0,0; | ||
+ | Font: 7; | ||
+ | VAlign: center; | ||
+ | Wordbreak: yes; | ||
+ | WordbreakChars: "/ -"; | ||
+ | TextFormat: "%2139000031;"; | ||
+ | ContextHelp#DP: 2133852370; | ||
+ | ContextHelpIcon: 125,0,0,392,63,40,0; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | CircularScroll: no; | ||
+ | ElemMinHeight: 64; | ||
+ | ElemMaxHeight: 64; | ||
+ | FocusedElemMinHeight: 64; | ||
+ | FocusedElemMaxHeight: 64; | ||
+ | HKExecute: Enter; | ||
+ | ShowLastEntry: yes; | ||
+ | LineSeparatorColor: 0,0,0,0; | ||
+ | BitmapReference: 609,0,0,30,30,4,17; | ||
+ | HighlightedBGColor: 0,0,0,0; | ||
+ | SelectedIndex#DP: 2139000032; | ||
+ | StartIndex#DP: 2134507580; | ||
+ | NumberOfVisibleRows: 1; | ||
+ | ListElementRenderer: DefaultRenderer; | ||
+ | DisplayedTexts#DP: 2134507568; | ||
+ | FocusedElemBackground: 63,0,0,480,64,0,0; | ||
+ | SelectedElemBackground: 63,0,0,480,64,0,0; | ||
+ | SelectedEvent: 2139000031; | ||
+ | |||
+ | TextHasIconIndex: yes; | ||
+ | |||
+ | HKUp: "Up"; | ||
+ | HKDown: "Down"; | ||
+ | |||
+ | } | ||
+ | farbe_scrollbar | ||
+ | { | ||
+ | ID: 3801209; | ||
+ | Class: SimpleScrollbar; | ||
+ | Coordinates: 432,83,48,90; | ||
+ | BGColor: 0,0,0,0; | ||
+ | BGMode: transparent; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | ThumbColor: 66,66,66; | ||
+ | AddScrollbarSizeToOwner: yes; | ||
+ | ScrollbarOwner: 3801161; | ||
+ | |||
+ | } | ||
+ | |||
+ | AmbiguityUpButton | ||
+ | { | ||
+ | ID: 3801240; | ||
+ | Class: SkinScrollbarButton; | ||
+ | Coordinates: 432,36,48,48; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | PYOffset: 2; | ||
+ | Enabled: 64,0,0,48,48,0,0; | ||
+ | Disabled: 64,0,0,48,48,0,0; | ||
+ | Pushed: 65,0,0,48,48,0,0; | ||
+ | Icon: 66,0,0,18,14,15,17,255,0,255; | ||
+ | PressEvent: 2134573060; | ||
+ | PressedEvent: 2134573059; | ||
+ | |||
+ | Type: up; | ||
+ | Scrollbar: 3801209; | ||
+ | |||
+ | } | ||
+ | |||
+ | AmbiguityDownButton | ||
+ | { | ||
+ | ID: 3801241; | ||
+ | Class: SkinScrollbarButton; | ||
+ | Coordinates: 432,172,48,48; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | PYOffset: 2; | ||
+ | Enabled: 67,0,0,48,48,0,0; | ||
+ | Disabled: 67,0,0,48,48,0,0; | ||
+ | Pushed: 68,0,0,48,48,0,0; | ||
+ | Icon: 69,0,0,18,14,15,17,255,0,255; | ||
+ | PressEvent: 2134573061; | ||
+ | PressedEvent: 2134573062; | ||
+ | |||
+ | Type: down; | ||
+ | Scrollbar: 3801209; | ||
+ | |||
+ | } | ||
+ | |||
+ | _title_bar.Children | ||
+ | { | ||
+ | ID: 3801129; | ||
+ | Class: SkinContainer; | ||
+ | Coordinates: 0,0,480,32; | ||
+ | Background: 155,0,0,480,32,0,0; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | Form: DropDownList_farbe__title_bar.Children_subform; | ||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | _bottom_bar.back.Children | ||
+ | { | ||
+ | ID: 3801136; | ||
+ | Class: SkinContainer; | ||
+ | Coordinates: 0,224,480,48; | ||
+ | Background: 72,0,0,428,48,52,0; | ||
+ | LongTapDownEvent: 2132606983; | ||
+ | |||
+ | Form: DropDownList_farbe__bottom_bar.back.Children_subform; | ||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
DropDownList_farbe__title_bar.Children_subform | DropDownList_farbe__title_bar.Children_subform | ||
{ | { |
Version vom 19. Januar 2010, 10:13 Uhr
Anleitung zum „Ändern der Schriftfarben“
1. Die neuen Wörter für die Farben müssen in die „Standard.de_DE.xml“ eingepflegt werden.
Auszug aus der „Standard.de_DE.xml“:
<text value="0#weiss" id="1690000000" type="STRING"/> <text value="1#gelb" id="1690000001" type="STRING"/> <text value="2#orange" id="1690000002" type="STRING"/> <text value="3#rot" id="1690000003" type="STRING"/> <text value="4#gruen" id="1690000004" type="STRING"/> <text value="5#violett" id="1690000005" type="STRING"/> <text value="6#blau" id="1690000006" type="STRING"/> <text value="7#schwarz" id="1690000007" type="STRING"/>
2.
Der Überschriftsname für die Auswahlbox muß in die „Standard.de_DE.xml“ eingepflegt werden.
Auszug aus der „Standard.de_DE.xml“:
<text value="Schriftfarbe" id="1680933401" type="STRING"/>
3.
Erstellung der Auswahlbox
Auszug aus der „pfskin.skn“
DropDownList_farbe_settings { ID: 3801159; Class: SkinContainer; Coordinates: 0,0,480,272; Background: 62,0,0,480,192,0,32; LongTapDownEvent: 2132606983;
farbe_list { ID: 3801161; Class: ListBox; Coordinates: 0,32,432,192; TextColor: 255,255,255; FocussedTextColor: 255,255,255; HighlightedTextColor: 255,255,255; TextSpace: 5; BGColor: 100,100,100; BGMode: opaque; BorderColor: 0,0,0,0; Font: 7; VAlign: center; Wordbreak: yes; WordbreakChars: "/ -"; TextFormat: "%2139000031;"; ContextHelp#DP: 2133852370; ContextHelpIcon: 125,0,0,392,63,40,0; LongTapDownEvent: 2132606983; CircularScroll: no; ElemMinHeight: 64; ElemMaxHeight: 64; FocusedElemMinHeight: 64; FocusedElemMaxHeight: 64; HKExecute: Enter; ShowLastEntry: yes; LineSeparatorColor: 0,0,0,0; BitmapReference: 609,0,0,30,30,4,17; HighlightedBGColor: 0,0,0,0; SelectedIndex#DP: 2139000032; StartIndex#DP: 2134507580; NumberOfVisibleRows: 1; ListElementRenderer: DefaultRenderer; DisplayedTexts#DP: 2134507568; FocusedElemBackground: 63,0,0,480,64,0,0; SelectedElemBackground: 63,0,0,480,64,0,0; SelectedEvent: 2139000031; TextHasIconIndex: yes; HKUp: "Up"; HKDown: "Down"; }
farbe_scrollbar { ID: 3801209; Class: SimpleScrollbar; Coordinates: 432,83,48,90; BGColor: 0,0,0,0; BGMode: transparent; LongTapDownEvent: 2132606983; ThumbColor: 66,66,66; AddScrollbarSizeToOwner: yes; ScrollbarOwner: 3801161; } AmbiguityUpButton { ID: 3801240; Class: SkinScrollbarButton; Coordinates: 432,36,48,48; LongTapDownEvent: 2132606983; PYOffset: 2; Enabled: 64,0,0,48,48,0,0; Disabled: 64,0,0,48,48,0,0; Pushed: 65,0,0,48,48,0,0; Icon: 66,0,0,18,14,15,17,255,0,255; PressEvent: 2134573060; PressedEvent: 2134573059; Type: up; Scrollbar: 3801209; } AmbiguityDownButton { ID: 3801241; Class: SkinScrollbarButton; Coordinates: 432,172,48,48; LongTapDownEvent: 2132606983; PYOffset: 2; Enabled: 67,0,0,48,48,0,0; Disabled: 67,0,0,48,48,0,0; Pushed: 68,0,0,48,48,0,0; Icon: 69,0,0,18,14,15,17,255,0,255; PressEvent: 2134573061; PressedEvent: 2134573062; Type: down; Scrollbar: 3801209; } _title_bar.Children { ID: 3801129; Class: SkinContainer; Coordinates: 0,0,480,32; Background: 155,0,0,480,32,0,0; LongTapDownEvent: 2132606983; Form: DropDownList_farbe__title_bar.Children_subform; } _bottom_bar.back.Children { ID: 3801136; Class: SkinContainer; Coordinates: 0,224,480,48; Background: 72,0,0,428,48,52,0; LongTapDownEvent: 2132606983; Form: DropDownList_farbe__bottom_bar.back.Children_subform; } }
DropDownList_farbe__title_bar.Children_subform { ID: 3801129; Class: SkinContainer; Coordinates: 0,0,480,32; Background: 155,0,0,480,32,0,0; LongTapDownEvent: 2132606983;
view_title.text { ID: 3801130; Class: SkinText; Coordinates: 0,0,480,32; Text#DP: 1680933401; TextCoordinates: 24,0,374,32; TextColor: 255,255,255; Font: 7; VAlign: center; LongTapDownEvent: 2132606983;
}
launch_context_help { ID: 3801135; Class: LauncherButton; Coordinates: 400,0,80,32; EnabledState#DP: 2135556133; LongTapDownEvent: 2132606983;
Launch: "\My Flash Disk\navigation\multimedia\helperapp\HelperApp";
PYOffset: 2; Enabled: 156,0,0,80,32,0,0; Disabled: 157,0,0,80,32,0,0; Pushed: 158,0,0,80,32,0,0; Icon: 159,0,0,30,30,25,-1,255,0,255; DisabledIcon: 159,0,0,30,30,25,-1,255,0,255; PressedEvent: 838860803;
}
}
DropDownList_farbe__bottom_bar.back.Children_subform { ID: 3801136; Class: SkinContainer; Coordinates: 0,224,480,48; Background: 72,0,0,428,48,52,0; LongTapDownEvent: 2132606983;
back { ID: 3801137; Class: PushButton; Coordinates: 0,0,52,48; Navigatable: no; LongTapDownEvent: 2135556150;
HKPush: "left"; PYOffset: 2; Enabled: 127,0,0,52,48,0,0; Disabled: 128,0,0,52,48,0,0; Pushed: 129,0,0,52,48,0,0; Icon: 19,0,0,30,30,11,9,255,0,255; PressedEvent: 2135293964;
}
}
4.
Auswahlbox im Darstellungsmenü (Seite2 „Map_view_settings_2“) sichtbar machen
Auszug aus der „pfskin.skn“ farbe_settings_container { ID: 4587588; Class: SkinContainer; Coordinates: 240,32,240,64; LongTapDownEvent: 2132606983;
Form: Map_view_settings_2_farbe_settings_container_subform;
}
Map_view_settings_2_farbe_settings_container_subform
{
ID: 4587588;
Class: SkinContainer;
Coordinates: 240,32,240,64;
LongTapDownEvent: 2132606983;
farbe_settings { ID: 4587591; Class: DropDown; Coordinates: 0,0,240,64; TextCoordinates: 48,29,155,25; TextColor: 255,255,255; Font: 7; VAlign: center; Eeffect1: "FlyIn"; Eeffect2: "ZoomIn"; EOffset: "AutoCenter"; LongTapDownEvent: 2132606983;
DroppedCoordinates: 0,0; ListBox: farbe_list; ListBoxForm: DropDownList_farbe_settings; TextHasIconIndex: yes; ElementClass: "SkinButton"; Enabled: 88,0,0,240,64,0,0; Disabled: 115,0,0,240,64,0,0; Pushed: 90,0,0,240,64,0,0; Icon: 609,0,0,30,30,4,17,255,0,255; PYOffset: 2; OpenBoxEvent: 2135293965; CloseBoxEvent: 2135293964; BoxOpenedEvent: 2135293967; BoxClosedEvent: 2135293966;
}
Label_farbe_settings { ID: 4587592; Class: SkinText; Coordinates: 0,0,240,64; Text#DP: 1680933401; TextCoordinates: 44,0,192,28; TextColor: 255,255,255; Font: 7; TapMode: TapThrough; ContextHelp#DP: 2133852370; ContextHelpIcon: 87,0,0,206,64,34,0; DisplayedText#DP: 2135293974; LongTapDownEvent: 2132606983;
}
}
5. Icon für die Auswahlbox erstellen und in der „pfskin.skn“ hinterlegen
Auszug aus der „pfskin.skn“ 609: PPSkin\480x272\PPSkin\icons_farbe.png;
6.
Die Verbindungen zwischen der „Standard.de_DE.xml“, der Auswahlbox und der zu ändernden Schrift über die „dpitems.xml“ herstellen
Auszug aus der „dpitems.xml“ <item id="2139000031" value="1690000000|1690000001|1690000002|1690000003|1690000004|1690000005|1690000006|1690000007" type="ITEM_LIST"/> <item id="2139000032" value="0" type="INT" persistent="true"/> <item id="2139000033" value="255,255,255|255,255,0|255,120,0|255,0,0|0,255,0|255,0,255|0,0,255|0,0,0" type="STRING_LIST"/> <item id="2139000034" value="2139000033|2139000032#DP" type="LIST_ELEMENT_REFERENCE"/>
6.
Zum Schluß müssen noch die Schriften definiert werden, welche die Farben ändern sollen, dazu ein Beispiel aus der „pfskin.skn“
Distance_to_next_manoeuvre { ID: 4063544; Class: GenericFormattedText; Coordinates: 46,1,68,25; Text#DP: 67108866; TextColor#DP: 2139000034; Font: 8; HAlign: right; Visibility#DP: 2134769740;
TypeFormat: 6; UnitFont: 14; UnitType#DP: 2135293986;
} Viel Erfolg ... Pumuckel