nerobot

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 805 total)
  • Author
    Posts
  • in reply to: Preferences class #12687

    nerobot
    Participant

    Did you check line with error by debugger?

    in reply to: Preferences class #12685

    nerobot
    Participant

    Thanks for concatenating all related parts here!

    Note: “New Preferences().Get(…” – you needn’t to use New here because Get is a function not a method and it can be accessed by class name not an instance.

    Syntax in my first post is correct.

    in reply to: Pi platform #12673

    nerobot
    Participant

    There was raspbian target, I don’t know what happened with it.

    in reply to: long hex #12672

    nerobot
    Participant

    It’s for the parser.

    In other langs:

    * decimal number is an Integer, and L-suffix means Long: 100L

    * floating number is a Double, and F-suffix means Float: 3.14f

    Is it works:

    Const TriggerBit:ULong=$200000000

    in reply to: Ted2Go IDE #12633

    nerobot
    Participant

    I’ve added the issue, will fix later.

    Or I can accept pull request with fix. 🙂

    in reply to: Memory Access violation #12599

    nerobot
    Participant

    To check memory access violation error you can run your game in debug mode: menu Build — Debug.

    Or you know the line with error but don’t understand why?

    in reply to: Ted2Go IDE #12562

    nerobot
    Participant

    Hm. What about allowing to drop Docs tab near the tabs with code? So that it will occupy whole height. And you can goto it by (shift+)ctrl+tab.

    in reply to: Create a CustomView and add it into a DockingView #12550

    nerobot
    Participant

    Naming depends on what that component will do.

    I don’t understand what do you want to achieve here. Kind of container? But we already have DockingView as a good container.

    in reply to: Create a CustomView and add it into a DockingView #12548

    nerobot
    Participant

    Try to add in constructor of CustomView:

    And possibly right there:

    dockingView.Layout=”fill”

    in reply to: Happy New Year! #12546

    nerobot
    Participant

    2k18 is here! 🙂

    in reply to: Creating an MVC style architecture. #12440

    nerobot
    Participant

    In your case UpdateModel () and UpdateView () can became monstrous.

    And also you can to subscribe on these events many times, I don’t know is it good.

    And any small change for view or model entails full updating because you grab/set all changes in two single functions.

    in reply to: GUI and GameWindow #12414

    nerobot
    Participant

    Look at DockingView, it’s one of powerful views.

    You can use it to split any area by parts.

    Then assign that dock as window.ContentView.

    Canvas is label here, but you should to make own class that extends View (inner window class as a variant) and to delegate drawing to it.

    For testing bounds you can set backgroundcolor property of your view via view.Style.BackgroundColor=…

    And look at docs of view.Layout property, Layout=”fill” is good to have when view became contentView.

    in reply to: Ted2Go IDE #12403

    nerobot
    Participant

    Files chooser is native window, therefore it renders as it can. 🙂

    Did you try to run ted2go as admin and then open windows/fonts?

    I thinks you always should to copy fonts into ide/assets dir to have relative path. Or even change theme to use your font.

    in reply to: Creating an MVC style architecture. #12397

    nerobot
    Participant

    1. Usually ViewModel has links to model and view of concrete types, where the types are interface types.

    2. View and model are classes, not plain data, so you should work with objects, not a plain properties like Text.

    Model is like data provider, we ask it “get me a text” and it give it to us.

    View is displayable element, that can notify ViewModel about events like text changing or mouse click, and ViewModel decides what to do.

    Also VM may listen signals / changes of Model and update View.

    View is the only but it can be complex like DockingView with parents – and it always provide us needed methods via its interface. We just call method and view updates itself in proper way.

    VM can contains many models to get / put data.

    You never assing view to model or vice versa.. as I saw in your code.

    in reply to: Ted2Go IDE #12373

    nerobot
    Participant

    Just pushed v2.8 into the master.

    Also there are binaries for mac / win on itch.io.

    Thanks to @Diffrenzy for macos build. 🙂

Viewing 15 posts - 121 through 135 (of 805 total)