Code Monkey home page Code Monkey logo

imgui-text-marquee's Introduction

ImGui-Marquee-Text

An easy way to make a text marquee using ImGui. I got the inspiration to make this from seeing Ruit's old menus, which had this style of marquee.

I used ImGui::GetFrameCount() to check the amount of frames the ImGui menu has rendered. Every 30 frames it will move the text automatically, in-turn creating a "marquee". I personally think it makes your mobile mod menus look quite good :)

If you don't want to use ImGui::GetFrameCount(), you can also use an engine-based function, such as get_time (UnityEngine.Time) for Unity-based games. But, I wanted something that was universal for all games, hence why I'm using ImGui::GetFrameCount() instead.

I've shown an example of what it looks like in an application below (look at the bottom of the screen). Other than that, have fun!

2022-03-02.18-17-23.mp4

imgui-text-marquee's People

Contributors

rev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

imgui-text-marquee's Issues

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.