macMikey / LC-NavRad

1 stars 0 forks source link

update editor #3

Open macMikey opened 1 year ago

macMikey commented 1 year ago
macMikey commented 1 year ago
macMikey commented 1 year ago

interim:

macMikey commented 1 year ago

com.livecode.pi.svgiconfilter is the new one in the powerbutton

macMikey commented 1 year ago

mousedown does widgetclicked (tClickPos,false) mouseup does widgetClicked (tClickPos,true) doPopup (pClickPosition,tElement) doAction(tElement)

doPopup: popup widget pArray["popup"]

macMikey commented 1 year ago

what is causing the PI to draw the array of navbars?

macMikey commented 1 year ago

in calculateEditModeIconRects() we call

setEditableRect("icon", tX, mNavData[tX]["icon_rect"], \
            "Icon", "com.livecode.widget.iconPicker", iconSelected)
setEditableRect("selectedIcon", tX, mNavData[tX]["hilited_icon_rect"], \
            "Highlighted Icon", "com.livecode.widget.iconPicker", iconSelected)

let's try com.livecode.pi.svgpicker for starters.

macMikey commented 1 year ago

Ran into an issue with the editor b/c the editor stack has a navbar in it, and we're trying to modify the behavior of the navrad, and the behavior of the editor is embedded in the widget. i created a new editor stack, put a navrad in the template group, created the behavior stack, put it in the editor folder, and let's see what happens...

macMikey commented 1 year ago

just did the following:

maybe i missed something when i was trying to generate the edit mode goodness. remember, the reason why we're doing this is because navbar and thus navrad have the edit functionality for the items built into the widget (i.e. bootstrapping). we are trying to get the widget to use the svgfilter instead of iconpicker, so the code that is embedded in the navbar widget is crushing our dreams because it's compiled to use the iconpicker, and it is contained in the editor stack, thus its behavior rules.

macMikey commented 1 year ago
macMikey commented 1 year ago

notes:

macMikey commented 1 year ago

maybe i need to try a different use syntax and specify the path.

macMikey commented 1 year ago
macMikey commented 1 year ago

if you edit the navrad editor stack, which has the template group and a navrad embedded in it, the navrad is blank, and the editor won't load. if you open the com.pi.navbar editor, the navbar appears in the group, and selecting it brings up the editor just fine, thank you very much.