Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom panel actors completely overwrite the actors object. #5499

Open
luce80 opened this issue Apr 14, 2024 · 4 comments
Open

Custom panel actors completely overwrite the actors object. #5499

luce80 opened this issue Apr 14, 2024 · 4 comments
Assignees

Comments

@luce80
Copy link

luce80 commented Apr 14, 2024

Describe the bug
Custom panel actors completely overwrite the actors object.

To reproduce

system/view/VID/styles/test-panel: [
	default-actor: on-down
	template: [
		type: 'panel
		size: 200x200
		actors: [
			test-func: func [a b][]
		]
	]
	init: [
		?? actors
		actors/test-func 1 2
	]
]
view [test-panel [button "test"] on-created [print "created"]]

Expected behavior
Custom actor functions should overwrite ONLY an already existing function with the same name.

Platform version

-----------RED & PLATFORM VERSION----------- 
RED: [ branch: "master" tag: #v0.6.5 ahead: 32 date: 16-Mar-2024/20:36:50 commit: #181d7faeab0381d7a86575847918a4ab05e68503 ]
PLATFORM: [ name: "Windows 11" OS: 'Windows arch: 'x86-64 version: 10.0.0 build: 22631 ]
--------------------------------------------
@gurzgri
Copy link

gurzgri commented Apr 14, 2024

Sounds like we've been there before with issue #3392.

@hiiamboris
Copy link
Collaborator

with the only difference that that was an inline VID style and this is a template

@dockimbel dockimbel self-assigned this Apr 15, 2024
@luce80
Copy link
Author

luce80 commented Apr 15, 2024

A template of a panel. A template of something else works.

@greggirwin
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants