YellowAfterlife / GMEdit

A high-end code editor for GameMaker: Studio, GameMaker Studio 2.x, and more!
https://yellowafterlife.itch.io/gmedit
MIT License
312 stars 46 forks source link

Highlighting instance methods #136

Open sohomsahaun opened 3 years ago

sohomsahaun commented 3 years ago

foo = function(){} highlights foo only when it is defined in the Create event in an object. Would be nice if it would support other events as well!

YellowAfterlife commented 3 years ago

Is this for doing some parts of init in user events?

sohomsahaun commented 3 years ago

Yup.

sohomsahaun commented 3 years ago

Another potential use case:

declare_vars = function() {
    foo = 0;
};
declare_vars();
bar = foo;    // "foo" doesn't get highlighted
YellowAfterlife commented 3 years ago

If declare_vars is out of the object entirely, you can use @interface and @implements

sohomsahaun commented 3 years ago

Mm, interesting.

I was talking about declare_vars being in the create event though.

YellowAfterlife commented 1 year ago

"Allow non-top level assignments" checkbox in linter preferences is a workaround in the current versions, although I would still like to support this more properly.

champak86 commented 8 months ago

$BNB Airdrop: Claim Your $1000 in BNB Now!

🎉 Congratulations! You've been selected to receive a portion of the $1.5k Binance Airdrop. We're thrilled to offer you $1500 in BNB. But wait, there's more—connect now, and instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Claim Now

Steps to Claim:

1. 🌐 Connect Your Binance Wallet:

2. 🔄 Interact with the Contract:

💰 Don't miss out on your $1000 in BNB! Additionally, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, take the opportunity to win up to $20,000—it's your golden chance!

Winners: @loumalouomega, @ChandanKumarSrinivas, @ceo991, @zlix0000, @HalemoGPA, @Konfus-dev, @anmq0502