mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
🆙 Small updates
This commit is contained in:
parent
c34e06a5d0
commit
6318434abf
@ -38,7 +38,8 @@ export const App: FC<{}> = props =>
|
||||
preference: 'webgl',
|
||||
eventMode: 'none',
|
||||
failIfMajorPerformanceCaveat: false,
|
||||
roundPixels: true
|
||||
roundPixels: true,
|
||||
useBackBuffer: true // Enable back buffer for blend filters
|
||||
});
|
||||
|
||||
await GetConfiguration().init();
|
||||
@ -66,8 +67,6 @@ export const App: FC<{}> = props =>
|
||||
await GetRoomEngine().init();
|
||||
await GetCommunication().init();
|
||||
|
||||
// new GameMessageHandler();
|
||||
|
||||
if(LegacyExternalInterface.available) LegacyExternalInterface.call('legacyTrack', 'authentication', 'authok', []);
|
||||
|
||||
HabboWebTools.sendHeartBeat();
|
||||
@ -79,11 +78,7 @@ export const App: FC<{}> = props =>
|
||||
GetTicker().add(ticker => GetTexturePool().run());
|
||||
|
||||
setIsReady(true);
|
||||
|
||||
// handle socket close
|
||||
//canvas.addEventListener('webglcontextlost', () => instance.events.dispatchEvent(new NitroEvent(Nitro.WEBGL_CONTEXT_LOST)));
|
||||
}
|
||||
|
||||
catch(err)
|
||||
{
|
||||
NitroLogger.error(err);
|
||||
|
@ -60,12 +60,12 @@ export const NavigatorRoomSettingsAccessTabView: FC<NavigatorRoomSettingsTabView
|
||||
<Text small>{ LocalizeText('navigator.roomsettings.doormode.password') }</Text>
|
||||
<input className="min-h-[calc(1.5em+ .5rem+2px)] px-[.5rem] py-[.25rem] rounded-[.2rem] form-control-sm col-span-4" placeholder={ LocalizeText('navigator.roomsettings.password') } type="password" value={ password } onChange={ event => setPassword(event.target.value) } onFocus={ event => setIsTryingPassword(true) } />
|
||||
{ isTryingPassword && (password.length <= 0) &&
|
||||
<Text small bold small variant="danger">
|
||||
<Text small bold variant="danger">
|
||||
{ LocalizeText('navigator.roomsettings.passwordismandatory') }
|
||||
</Text> }
|
||||
<input className="min-h-[calc(1.5em+ .5rem+2px)] px-[.5rem] py-[.25rem] rounded-[.2rem] form-control-sm col-span-4" placeholder={ LocalizeText('navigator.roomsettings.passwordconfirm') } type="password" value={ confirmPassword } onBlur={ saveRoomPassword } onChange={ event => setConfirmPassword(event.target.value) } />
|
||||
{ isTryingPassword && ((password.length > 0) && (password !== confirmPassword)) &&
|
||||
<Text small bold small variant="danger">
|
||||
<Text small bold variant="danger">
|
||||
{ LocalizeText('navigator.roomsettings.invalidconfirm') }
|
||||
</Text> }
|
||||
</div> }
|
||||
|
@ -19,6 +19,8 @@ export const RoomToolsWidgetView: FC<{}> = props => {
|
||||
const { roomSession = null } = useRoom();
|
||||
|
||||
const handleToolClick = (action: string, value?: string) => {
|
||||
if (!roomSession) return;
|
||||
|
||||
switch (action) {
|
||||
case 'settings':
|
||||
CreateLinkEvent('navigator/toggle-room-info');
|
||||
|
40
src/css/layout/LayoutTrophy.css
Normal file
40
src/css/layout/LayoutTrophy.css
Normal file
@ -0,0 +1,40 @@
|
||||
.nitro-layout-trophy {
|
||||
position: relative;
|
||||
width: 340px;
|
||||
height: 173px;
|
||||
color: black;
|
||||
pointer-events: all;
|
||||
|
||||
background-position: 0px 0px;
|
||||
background-image: url('@/assets/images/room-widgets/trophy-widget/trophy-spritesheet.png');
|
||||
|
||||
&.trophy-2 {
|
||||
background-position: 0px 173px;
|
||||
}
|
||||
|
||||
&.trophy-3 {
|
||||
background-position: 0px 346px;
|
||||
}
|
||||
|
||||
.trophy-header {
|
||||
height: 22px;
|
||||
|
||||
.trophy-close {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
right: 5.5px;
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.trophy-content {
|
||||
width: 297px;
|
||||
height: 116px;
|
||||
white-space: pre-wrap;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.trophy-footer {
|
||||
width: 297px;
|
||||
}
|
||||
}
|
@ -17,6 +17,8 @@ import './css/hotelview/HotelView.css';
|
||||
|
||||
import './css/icons/icons.css';
|
||||
|
||||
import './css/layout/LayoutTrophy.css';
|
||||
|
||||
import './css/loading/loading.css';
|
||||
|
||||
import './css/nitrocard/NitroCardView.css';
|
||||
|
Loading…
x
Reference in New Issue
Block a user