Search found 569 matches

by PEB
Fri Sep 09, 2022 12:07 am
Forum: Hollywood bugs
Topic: Button Detection using RapaGUI with FitScale and KeepProportions
Replies: 1
Views: 1528

Button Detection using RapaGUI with FitScale and KeepProportions

There seems to be a problem with buttons being detected in the correct location when using RapaGUI with Fitscale and KeepProportions set to "True." The vertical placement seems to be correct, but the horizontal placement is wrong. (The same problem shows up whether #LAYERBUTTON or #SIMPLEB...
by PEB
Tue Aug 30, 2022 5:45 am
Forum: Hollywood bugs
Topic: bug found with square bracket
Replies: 7
Views: 2249

Re: bug found with square bracket

I can't test this right now, but I think the way I've done it before was to replace "[" with "[[" and replace "]" with '']]" (double brackets).
by PEB
Wed Dec 29, 2021 4:51 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10886

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

Revisiting an issue that has been troubling me for a while now... The following code fixes the proportional scaling issue (kind of). But the problem is that it requires a SystemRequest() message to be used. Without the message, the scaling is wrong (too long in Portrait mode and too short in Landsca...
by PEB
Sun Sep 19, 2021 4:38 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 3044

Re: Wrong value for ATTRHEIGHT

Constants such as #ATTRWIDTH and #ATTRHEIGHT have number values assigned to them (0 and 1 respectively). DebugPrint(#ATTRWIDTH, #ATTRHEIGHT) But when you weren't using the constants, ATTRWIDTH and ATTRHEIGHT were taken as variables that had not yet been assigned a value, so they were equal to zero (...
by PEB
Sun Sep 19, 2021 12:59 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 3044

Re: Wrong value for ATTRHEIGHT

Your code is a bit wrong.
Try this instead:

Code: Select all

DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRWIDTH))
DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRHEIGHT))
by PEB
Fri Aug 27, 2021 3:19 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10886

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

I think the problem might be solved by delaying things like moai.get("Main", "Height") and GetAttribute(#DISPLAY, 1, #ATTRSCALEHEIGHT) until after the display has settled on its new attributes. It seems like the numbers are different initially (when first started and right after ...
by PEB
Thu Aug 19, 2021 12:14 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10886

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

It probably goes back to the Hollywood 8 version of the Android player.
by PEB
Sun Aug 15, 2021 8:40 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10886

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

With the newest RapaGUI (and Hollywood Player for Android), the code that worked before has a couple problems now. I found a workaround for one of the problems by delaying the first scaling using SetTimeout(), though there's probably a better way of handling that. (See code below.) However, the scal...
by PEB
Thu Jul 29, 2021 6:59 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 4264

Re: RaiseOnError() with RapaGUI on Latest Android Player

Yes, RunCallback() does work and is better. Thanks for the suggestion!
(I keep forgetting to use that new function.) :oops:
by PEB
Sun Jul 25, 2021 7:09 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 4264

Re: RaiseOnError() with RapaGUI on Latest Android Player

If it's a hard one to fix, this might be a good enough work-around: @REQUIRE "RapaGUI" Function p_CustomErrorMessage(msg) SystemRequest("Debug Output", "Code: "..msg.userdata[0].."\nString: "..msg.userdata[1].."\nCommand: "..msg.userdata[2].."\n...