Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

davawen

6
Posts
3
Topics
1
Following
A member registered Jun 11, 2020 · View creator page →

Recent community posts

(8 edits)

Hello again!

I have seen a bug with functions inside structs where shortand types are commented out.
Creating a function with shortand types work as expected :

    function foo(bar: number)->void {}

However, functions inside structs automatically comment shortand types, so typing this :

    function foo() constructor
    {
            function bar(baz: number)-> void {}
    }

Then saving gives this :

    function foo() constructor
    {
            function bar(baz/*: number*/)/*-> void*/ {}
    }

It is to be noted that methods inside structs do work as expected, typing this then saving does not change anything :

    function foo() constructor
    {
            bar = function(baz: number)->void {}
    }

  

And I though my code was spaghetti, this just goes to show how complex it is to make such an editor (thank you by the way!),
I wish you good luck continuing it, and a merry Christmas!

foo = 
{
        bar: function(bla){}
};

Using debugShowToken, bar is noted as a localfield instead of a method.

foo.bar(bla);
Again, bar is noted as a field instead of a method, and there is no autocompletion for the arguments (bla doesn't show below).
Also, autocompletion seems to not be present for lightweight objects at all.

baz = function(){}
function baz(){}
A similar problem with instance defined methods/functions, baz is noted as a localfield instead of a method, however in both case argument autocompletion worked.

(2 edits)

The linter gives an error when using the XOR Operator, but the code compiles sucessfully.
Changing it to an AND, an OR or a single XOR fixes the error.


Ah, I've never used an ace based editor editor before, setting the font in ctrl+, worked perfectly !

Thank you for your quick response !

(1 edit)

Hi, i've downloaded GMEdit recently and had a general blast with it, however I wanted to change the original font of the editor and met a problem with the width of the text, as it doesn't match the editor's a cause a weird selection issue

The cursor doesn't move with the text, so it look like it's in the middle of the line while actually being at the end if you try to type somthing.
I'm thinking maybe I did something wrong with my css ?

@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
#main .gml * {
  font-family: 'Fira Code';
}