Coder Social home page Coder Social logo

altv-vcode's Introduction

altV-vCode

A server/client-sided editor made for alt:V MP and powered by the Monaco Editor

Tools were used to create in-game editor

  • React
  • MobX

Requirments

To enable ESM module, you need to have package.json file and to create it please follow Creating a package.json file.

Installation

Download the latest release ant put it in the resources folder.

Usage

Features

Feature Action
Drag Drags the opened window
Resize Resizes the opened window
Shortcuts Gives ability to manage files with specified key shortcuts
Saving All created files are saved

Config

The resource has a configuration file where you can change key shortcuts or disable them by commenting them out. The configuration file can be found in the resource folder config.js.

// JavaScript Event KeyCodes https://keycode.info/

const config = {
    DEBUG: false, // Don't change it. It's used only for development purposes.
    DEFAULT_WIDTH: 1000,
    DEFAULT_HEIGHT: 600,
    DEFAULT_POSITION_X: 100,
    DEFAULT_POSITION_Y: 100,
    TOGGLE_EDITOR: 115, // Default: F4
    RENAME_CURRENT_FILE: 113, // Default: F2
    CREATE_NEW_SERVER_FILE: 116, // Default: F5
    CREATE_NEW_CLIENT_FILE: 117, // Default: F6
    EXECUTE_CURRENT_FILE: 118, // Default: F7
    DELETE_CURRENT_FILE: 46, // Default: Delete
    SAVE_CURRENT_FILE: 120, // Default: F9
    CLOSE_EDITOR: 27, // Default: Esc
};

export default config;

Preview

Known issues

  • It may take some time to load webview, because after player connection typings are sent to webview from the server.
  • The monaco editor is not visible after the first opening. To fix it, it is necessary everytime to resize the window.

altv-vcode's People

Contributors

5exyguy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.