-
Notifications
You must be signed in to change notification settings - Fork 6
BadgeStyle
Kar edited this page Nov 24, 2019
·
3 revisions
enum BadgeStyle {
None,
BronzeMedal,
GoldMedal,
SilverMedal,
Alert,
Crown,
Ammo,
Armour,
Barber,
Clothes,
Franklin,
Bike,
Car,
Gun,
Heart,
Makeup,
Mask,
Michael,
Star,
Tatoo,
Trevor,
Lock,
Tick,
Sale,
ArrowLeft,
ArrowRight,
Audio1,
Audio2,
Audio3,
AudioInactive,
AudioMute
}
const { BadgeStyle, Point, Menu, UIMenuItem } = require('nativeui');
const
muted = true,
boughtTurbo = true
;
const menu = new Menu('Test Badge Style', '', new Point(50, 50));
const menuItem = new UIMenuItem('Voice State');
menuItem.SetLeftBadge(muted ? BadgeStyle.AudioMute : BadgeStyle.Audio3);
menu.AddItem(menuItem);
const turboItem = new UIMenuItem('Vehicle Turbo');
turboItem.SetRightBadge(boughtTurbo ? BadgeStyle.Car : BadgeStyle.None);
menu.AddItem(turboItem);