da ich seit Tagen nicht auf die Lösung eines Rätsels komme, möchte ich es mal hier versuchen.
Ich rufe zwei For-Schleifen bei einem Linksklick, auf ein ImageGadget, auf. Das Resultat wird nur von der ersten For-Schleife angezeigt und ich weiß nicht wieso.
Vielleicht sieht jemand von euch die Lösung.
For-Schleifen:
Code: Alles auswählen
If DM_Settings_Navi_Mode.i = 0 And DM_Settings_Navi_ModeString.s = "Text"
For DM_Content_Navi_Show.i = CP::List_Func(5, 0, "", "", "", "", 0, "Digital Media", "Vars Cons Coords", "Navi Main Switch ID") To (DM_Helper_List_Count_NaviMainEntries() * 58) Step 58
If IsGadget(DM_Content_Navi_Show.i) <> 0
HideGadget(DM_Content_Navi_Show.i, 1)
EndIf
If IsGadget(DM_Content_Navi_Show.i + 29) <> 0
HideGadget(DM_Content_Navi_Show.i + 29, 0)
EndIf
Next
ElseIf DM_Settings_Navi_Mode.i = 1 And DM_Settings_Navi_ModeString.s = "Icons"
For DM_Content_Navi_Show.i = CP::List_Func(5, 0, "", "", "", "", 0, "Digital Media", "Vars Cons Coords", "Navi Main Switch ID") To (DM_Helper_List_Count_NaviMainEntries() * 58) Step 58
If IsGadget(DM_Content_Navi_Show.i) <> 0
HideGadget(DM_Content_Navi_Show.i, 0)
EndIf
If IsGadget(DM_Content_Navi_Show.i + 29) <> 0
HideGadget(DM_Content_Navi_Show.i + 29, 1)
EndIf
Next
EndIf
If DM_Settings_Navi_Mode.i = 0 And DM_Settings_Navi_ModeString.s = "Text"
For DM_Content_Navi_Show.i = CP::List_Func(5, 0, "", "", "", "", 0, "Digital Media", "Vars Cons Coords", "Navi Games Switch ID") To (DM_Helper_List_Count_NaviGamesEntries() * 58) Step 58
If IsGadget(DM_Content_Navi_Show.i) <> 0
HideGadget(DM_Content_Navi_Show.i, 1)
EndIf
If IsGadget(DM_Content_Navi_Show.i + 29) <> 0
HideGadget(DM_Content_Navi_Show.i + 29, 0)
EndIf
Next
ElseIf DM_Settings_Navi_Mode.i = 1 And DM_Settings_Navi_ModeString.s = "Icons"
For DM_Content_Navi_Show.i = CP::List_Func(5, 0, "", "", "", "", 0, "Digital Media", "Vars Cons Coords", "Navi Games Switch ID") To (DM_Helper_List_Count_NaviGamesEntries() * 58) Step 58
If IsGadget(DM_Content_Navi_Show.i) <> 0
HideGadget(DM_Content_Navi_Show.i, 0)
EndIf
If IsGadget(DM_Content_Navi_Show.i + 29) <> 0
HideGadget(DM_Content_Navi_Show.i + 29, 1)
EndIf
Next
EndIf
Zur Verdeutlichung:
Eintrag
Switch
Switch Icon
Summary
Summary Icon
...
List_Main
Eintrag ID
Eintrag X
Eintrag Y
Eintrag W
Eintrag H
Eintrag Text
Eintrag TextFont
Eintrag SubText
Eintrag SubTextFont
Eintrag IconID
Eintrag IconOverID
Eintrag IconOpacity
Eintrag IconOpacityOver
Eintrag ImageID
Eintrag ImageOverID
Eintrag Color Text
Eintrag Color TextOver
Eintrag Color SubText
Eintrag Color SubTextOver
Eintrag Color Background
Eintrag Color BackgroundOver
Eintrag Color EdgeTop
Eintrag Color EdgeRight
Eintrag Color EdgeBottom
Eintrag Color EdgeLeft
Eintrag Color EdgeTopOver
Eintrag Color EdgeRightOver
Eintrag Color EdgeBottomOver
Eintrag Color EdgeLeftOver
Ein Debug "Navi Games" direkt nach dem ersten For, in der zweiten Ausführung (also ab dem zweiten If DM_Settings_Navi_Mode.i = 0 And DM_Settings_Navi_ModeString.s = "Text") wird nicht angezeigt. Das sagt mir bisher nur das der Inhalt des zweiten Aufrufs nicht abgearbeitet / ausgeführt wird.
Nur, wieso?
Danke euch im voraus!