Skip to content

Commit c412108

Browse files
committed
1.07
* Accepted [PR from loljoshie](#1). Which changed around the color scheme of the ui, logo to svg, added sounds, and locale support. * Changed close button to a reset button * Moved around order of items in the ui to make more sense * Updated README
1 parent 5e6d2df commit c412108

File tree

5 files changed

+36
-22
lines changed

5 files changed

+36
-22
lines changed

README.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
12
# QBCore Scenes
2-
Original ui, util code, and inspiration from [loljoshie's nuidrawtext](https://github.com/loljoshie/nui_drawtext).
3+
Original ui, util code, and inspiration from [loljoshie's nui_drawtext](https://github.com/loljoshie/nui_drawtext).
34

45
I really liked LJ's scenes implementation, but I wanted to do a lot of refactor on it, as well as add some custom work from myself, so I did!
56

6-
Scenes lets you place drawtext anywhere in the world, through the NUI menu, and laser pointers.
7+
Scenes lets you place drawtext anywhere in the world, through the NUI menu, and laser pointers. This drawtext can include emojis, be multiple lines, and supports markdown! If you don't like the way a scene looks before you place it, you can easily edit it!
8+
79
# Setup
810
1. Import scenes.sql into your database
911
2. Adjust values in the `shared/config.lua` file to your likings.
@@ -18,10 +20,9 @@ Scenes lets you place drawtext anywhere in the world, through the NUI menu, and
1820
* Markdown, emojis, and multiple lines supported
1921
* Configurable logo
2022

21-
2223
# Example Usage
2324
## Interface Examples
24-
![Interface](https://i.imgur.com/hdYdn0i.png)
25+
![Interface](https://i.imgur.com/MfbG070.png)
2526
### Creation Laser
2627
![Creation Laser](https://i.imgur.com/NtQZp8p.png)
2728
### Deletion Laser
@@ -31,5 +32,19 @@ Scenes lets you place drawtext anywhere in the world, through the NUI menu, and
3132

3233

3334
# Change Log
35+
### 1.07
36+
* Accepted [PR from loljoshie](https://github.com/ItsANoBrainer/qb-scenes/pull/1). Which changed around the color scheme of the ui, logo to svg, added sounds, and locale support.
37+
* Changed close button to a reset button
38+
* Moved around order of items in the ui to make more sense
39+
* Updated README
40+
3441
### 1.0
3542
* Initial release
43+
44+
# Future ToDos
45+
* Refactor VUE code to allow for resetting values after placement
46+
* Add config option to only allow posting scenes if you have an item (Poster?)
47+
* Add more scene settings (maybe an advanced tab?) (text outline)
48+
* Add background settings (Type, height/width, color, opacity, x/y location, rotation)
49+
* Add interaction function when E is pressed nearby. This will let users bind any command on press.
50+
* Be able to preview your changes live on the screen instead of having to submit and check

fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ games { 'gta5' }
33

44
author 'ItsANoBrainer'
55
description 'QB-Core Scenes'
6-
version '1.0.0'
6+
version '1.0.7'
77

88
ui_page 'html/index.html'
99

html/app.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ const app = Vue.createApp({
5353
SendPostRequest('DeleteLaser')
5454
CloseMenu()
5555
},
56-
onCancel() {
57-
CloseMenu()
56+
onReset() {
5857
text.value = null
5958
color.value = '#ffffff'
6059
expiration.value = '1 hour'

html/index.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</template>
2525
</q-input>
2626

27-
<q-input dark hint="Color of text" v-model="color" class="my-input"
27+
<q-input dark hint="Text Color" v-model="color" class="my-input"
2828
color="field" label="Color">
2929
<template v-slot:prepend>
3030
<q-icon name="palette"/>
@@ -49,6 +49,16 @@
4949
</q-item>
5050
<q-item-label class="slidertext">Font Size</q-item-label>
5151

52+
<q-item class="slideritem">
53+
<q-item-section avatar>
54+
<q-icon color="slider" name="title"/>
55+
</q-item-section>
56+
<q-item-section>
57+
<q-slider dark label-always v-model="fontstyle" :min="1" :max="5" label color="sliderb"/>
58+
</q-item-section>
59+
</q-item>
60+
<q-item-label class="slidertext">Font style</q-item-label>
61+
5262
<q-item class="slideritem">
5363
<q-item-section avatar>
5464
<q-icon color="slider" name="social_distance"/>
@@ -59,30 +69,20 @@
5969
</q-item>
6070
<q-item-label class="slidertext">View Distance</q-item-label>
6171

62-
<q-select hint="Time before expiration." dark v-model="expiration" :options="expirationOptions" color="field"
72+
<q-select hint="Expiration Time" dark v-model="expiration" :options="expirationOptions" color="field"
6373
label="Expiration Time">
6474
<template v-slot:prepend>
6575
<q-icon name="schedule"/>
6676
</template>
6777
</q-select>
6878

69-
<q-item class="slideritem">
70-
<q-item-section avatar>
71-
<q-icon color="slider" name="title"/>
72-
</q-item-section>
73-
<q-item-section>
74-
<q-slider dark label-always v-model="fontstyle" :min="1" :max="5" label color="sliderb"/>
75-
</q-item-section>
76-
</q-item>
77-
<q-item-label class="slidertext">Font style</q-item-label>
78-
7979
<div class="row justify-center">
8080
<q-btn style="margin-right: 1vh;" class="Close" label="Create" type="submit" text-color="black"
8181
color="button"></q-btn>
8282
<q-btn v-on:click="onDelete()" style="margin-right: 1vh;" class="delete" label="Delete"
8383
text-color="black" color="buttondel"></q-btn>
84-
<q-btn v-on:click="onCancel()" style="margin-right: 1vh;" class="cancel" label="Cancel"
85-
text-color="black" color="buttoncancel"></q-btn>
84+
<q-btn v-on:click="onReset()" style="margin-right: 1vh;" class="cancel" label="Reset"
85+
text-color="black" color="buttonreset"></q-btn>
8686
</div>
8787
</q-form>
8888
</div>

html/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.text-slider { color: #ffffffb3!important; }
66
.bg-button { background: #70f145!important; }
77
.bg-buttondel { background: rgb(220 20 60)!important; }
8-
.bg-buttoncancel { background: rgb(106, 106, 106)!important; }
8+
.bg-buttonreset { background: rgb(106, 106, 106)!important; }
99
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none!important; margin: 0; }
1010
div#q-loading-bar { display: none!important; }
1111
::-webkit-scrollbar { display: none!important; }

0 commit comments

Comments
 (0)