harian untung99play.xyz

untung99play.xyz: How to a create simple custom user interface inside OBS Studio with a Lua Script


Untung99 menawarkan beragam permainan yang menarik, termasuk slot online, poker, roulette, blackjack, dan taruhan olahraga langsung. Dengan koleksi permainan yang lengkap dan terus diperbarui, pemain memiliki banyak pilihan untuk menjaga kegembiraan mereka. Selain itu, Untung99 juga menyediakan bonus dan promosi menarik yang meningkatkan peluang kemenangan dan memberikan nilai tambah kepada pemain.

Berikut adalah artikel atau berita tentang Harian untung99play.xyz dengan judul untung99play.xyz: How to a create simple custom user interface inside OBS Studio with a Lua Script yang telah tayang di untung99play.xyz terimakasih telah menyimak. Bila ada masukan atau komplain mengenai artikel berikut silahkan hubungi email kami di koresponden@untung99play.xyz, Terimakasih.

Because it was a bit difficult learning on Lua for OBS on my own, since there was such limited resources available online, and just a small niche of people who were actually developing with Lua inside OBS Studio. I have seen some really cool projects and can share them below. I will also share some more useful resources at the end of this article.

How to add a timestamp to your streams: https://dev.to/hectorleiva/start-to-write-plugins-for-obs-with-lua-1172

How to add a cool floating bouncing logo on your stream: https://jbscript.dev/my-first-lua-and-obs-script/

Dreamstime.com is the official owner of this stock footage. I do not claim this image as my own.

With such a popular software within the gaming streaming community, I have seen plenty of graphic designers working on overlays for their streams.

I want to give fellow designers a glimpse into how they can also include a cool an easy script into their workflow and make some really interesting stuff.

You can check out one of my Lua scripts here: https://github.com/Chriscodinglife/OBS-Scene-Creator-Gui-via-Lua-Script

In this tutorial I will cover the following:

  1. How to add text and images (in Base64) to the interface
  2. How to add clickable URL links
  3. How to add a clickable button

I will try my best to explain what I am doing as I go throughout the code. But common programming terms such as methods, libraries, and variables, and what exactly is a script file I will not cover in this tutorial.

If you do not have a text editor such as Sublime Text or Visual Studio, I definitely recommend downloading one now.

(I currently prefer to use Sublime Text 3 since it is completely free and lightweight, and I will be referencing this software as we go along, but please feel free to use any text editor of your choice.)

Open up Sublime Text 3, and lets create a new file and save it with any name you like but make sure it has the extension “.lua” at the end. (Without the quotes)

I have named mine “my_script.lua” and you can see the name of your file on the top left on the tab.

To communicate with OBS Studio through Lua, we need to tell OBS to import the OBS Lua library. Type the following:

obs = obslua

We will store or instantiate the “obslua” library as the variable “obs”, that way when we need to access any methods from the obslua library, we can simply use the variable “obs” instead.

Let’s add our first image. Our script can accept images encoded as Base64. Base64 in simple terms is a long string of text data used to represent image data. So to add our image, we will have to convert our image first to Base64.

Find an image you would like to add. I am going to use the MBP in .png format for this example. Visit the following website and drag and drop your image onto the website.

Once completed you should now have the following options.

Select the option “copy image.” This should copy a long data string that we will import into our script. You can also click on “show code” to see how the string looks like.

Back inside our script let us create a new variable called “image1” and assigning it as a local variable. Then within quotes, paste your copied text into your script. You have something like this:

local image1 = "your_copied_text"

For simplicity I have cut off the rest of the text in my example image above. But for your script make sure that your entire copied string rests inside quotation marks.