Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 13 2016 03:24
    @PeterWAWood banned @Vexercizer
Toomas Vooglaid
@toomasv
Poor Windows :(
Maciej Łoziński
@loziniak
Maybe it will be gone with Direct2D implementaton...
Toomas Vooglaid
@toomasv
Hopefully.
hiiamboris
@hiiamboris
system/view/auto-sync?: no reduces it
I mean, globally, not during clicks
hiiamboris
@hiiamboris
Better hack: add with [color: blue] after 1st panel and with [color: red] after 2nd
Or color: glass
I'm getting crash from calling do-events/no-wait from within on-drag actor
ne1uno
@ne1uno
very smooth in D2D branch, refresh seems slower there too
Toomas Vooglaid
@toomasv
Hm, neither moving auto-sync?: no before view and removing it from down/up events nor with trick seem to help. Unfortunately color: glass is out of question.
Thanks @ne1uno !
hiiamboris
@hiiamboris

color: glass is out of question.

why?

Toomas Vooglaid
@toomasv
Different styles with different colors are used.
hiiamboris
@hiiamboris
It's for the panel I mean
Red []
view [
    space 0x0 
    pb: panel [
        origin 0x0 
        box 300x300 blue react [
            face/size/x: face/parent/size/x
        ]
    ] with [color: glass]
    sp: base 10x300 loose 
        on-down [ofsy: face/offset/y system/view/auto-sync?: off] 
        on-up [system/view/auto-sync?: on] 
        on-drag [
            face/offset/y: ofsy 
            pb/size/x: face/offset/x - 10 
            pr/offset/x: face/offset/x + 10 
            pr/size/x: face/parent/size/x - face/offset/x - 20 
            show [pb pr face]
        ] 
    pr: panel [
        origin 0x0 
        box 300x300 red react [
            face/size/x: face/parent/size/x
        ]
    ] with [color: glass]
]
this works best on W7 for me
the only glitch is sp bar being thrashing a little, and the red base pr, when you move it to the right, gets redrawn on a new position (with older bigger size), and gets redrawn again with a new smaller size, which must be a View bug
Toomas Vooglaid
@toomasv
On panel sill flickering, BUT using alpha on boxes helps!
Thanks, @hiiamboris , I will try later again, have to go now.
hiiamboris
@hiiamboris
In the meantime, I'll report this mess ;)
Toomas Vooglaid
@toomasv
After trying again, I see three options: 1) add alpha: 1 to boxes (easiest but it would distort viewing on W7?) 2) lift boxes to top level (more complex code) 3) wait for D2D.
hiiamboris
@hiiamboris
don't add alpha to boxes :)
Nenad Rakocevic
@dockimbel
@qtxie ^--- What do you think?
Jose Luis
@planetsizecpu
After finishing L11 with @greggirwin 's (thx) suggested teleporter to the sphinx, I did some update on L2 and L3 scenarios as I realised it could be room for more fun, just for those who like play (if there is some).
cavetest113.gif
Jose Luis
@planetsizecpu
cavetest114.gif
Gregg Irwin
@greggirwin
Ha! I haven't noticed cobwebs before, and the trick of grabbing the bar so the car hits the guard is nice.
Jose Luis
@planetsizecpu
Yeah, the kart only kill the guards when the boy is inside, but no when unloaded, it also kill the boy if he is not in the handle or not well grabbed. On L2 I decided to put quicksand by adding a bit more RGB intensity to floor colour, so the gravity function works as no floor, so easy. L3 is a bit more refined than the showed here, I will upload to my repo when ready 🙄
luce80
@luce80
@toomasv on my W7 with december 0.6.4 build things get strange. Adding 0.0.0.0 is enough to avoid flickering but then red box grows and shrinks to the right (out of the right margin of the window !) instead of toward the blue box !
Toomas Vooglaid
@toomasv
@luce80 Thanks for interesting details! W7 is mystery to me :)
Petr Krenzelok
@pekr
Red box shifted to the right out of the margin too and I have Win10.
Toomas Vooglaid
@toomasv
You mean, it is not like this?:
panels-flicker
hiiamboris
@hiiamboris
Toomas Vooglaid
@toomasv
:+1:
GalenIvanov
@GalenIvanov
I'm working on a new game in the realm of the Hamiltonian cycles. This time the loop on a nxn grid is split into n segments. The goal is to form a closed loop in the dotted area by dragging/rotating/flipping the segments.
Looper.png
There's much work to be done - now the segments are static, I need to make them draggable and to decide what the interface for rotation/flipping will look like; checking for a valid solution is also waiting to be completed.
GalenIvanov
@GalenIvanov
I think it will be much harder than my "Island Alleys".
Toomas Vooglaid
@toomasv
@GalenIvanov Sounds quite challenging!
GalenIvanov
@GalenIvanov
@toomasv We'll see when it's finnished :)
Maciej Łoziński
@loziniak
Hi! Are field and area the only faces that can react to key press?
I display a base and I would like it to be closed by [ESC].
Probably I should set-focus to it? If so, it seems like set-focus does not work, because base's actors do not fire.
Maciej Łoziński
@loziniak
Or perhaps base cannot get focus?
hiiamboris
@hiiamboris
@loziniak set-focus, yes. It works on Windows
Maciej Łoziński
@loziniak
checked now, indeed. so, filing a bug for GTK :-) thanks!
hiiamboris
@hiiamboris
:+1:
Gregg Irwin
@greggirwin
:point_up: January 20, 2020 6:23 AM Very cool @GalenIvanov.
Jose Luis
@planetsizecpu
Push hard @GalenIvanov
GalenIvanov
@GalenIvanov
@greggirwin @planetsizecpu Thank you, it's a good exercise!