eduardbean
Member
- Joined
- Nov 26, 2010
- Messages
- 129
- Solutions
- 2
- Reaction score
- 15
I saw a picture with the transparency of otclient and wanted to know how to enable it
This is not something that is given to enable or disable. We made several changes to the source code otclient by a friend of mine, and you do not have and will not have access: D
items
622
opacity: 0.5
full-ground: false
connect(g_game, {onClientVersionChange = onClientVersionChange})
function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
Well, this code already exists in otclient.
Made this ceiling of glass to show you.
To achieve this, create a file called things.otml
Code:items 622 opacity: 0.5 full-ground: false
Use it from a module.
Code:connect(g_game, {onClientVersionChange = onClientVersionChange}) function onClientVersionChange(version) g_things.loadOtml('/things/things.otml') end
Create on your map item id 493 (water) which client id is 622.
That's it.
Well, this code already exists in otclient.
Made this ceiling of glass to show you.
To achieve this, create a file called things.otml
Code:items 622 opacity: 0.5 full-ground: false
Use it from a module.
Code:connect(g_game, {onClientVersionChange = onClientVersionChange}) function onClientVersionChange(version) g_things.loadOtml('/things/things.otml') end
Create on your map item id 493 (water) which client id is 622.
That's it.
That's ridiculous.
You had all the otclient source code for free and now you are proud to don't share your modifications? RIDICULOUS!
If you are so good, why don't coded your client from zero? lol
He is not obliged to share.. this is a MIT license so he can make amazing things and dont even show you 1 line of code.
Well, this code already exists in otclient.
Made this ceiling of glass to show you.
To achieve this, create a file called things.otml
Code:items 622 opacity: 0.5 full-ground: false
Use it from a module.
Code:connect(g_game, {onClientVersionChange = onClientVersionChange}) function onClientVersionChange(version) g_things.loadOtml('/things/things.otml') end
Create on your map item id 493 (water) which client id is 622.
That's it.
Transparency work fine, but missing -1 floor... You or someone know why?
connect(g_game, {onClientVersionChange = onClientVersionChange})
function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
function init()
g_ui.importStyle('styles/countwindow')
connect(g_game, {
onClientVersionChange = onClientVersionChange
onGameStart = onGameStart,
onGMActions = onGMActions,
onGameEnd = onGameEnd,
onLoginAdvice = onLoginAdvice
}, true)
gameRootPanel = g_ui.displayUI('gameinterface')
gameRootPanel:hide()
gameRootPanel:lower()
gameRootPanel.onGeometryChange = updateStretchShrink
gameRootPanel.onFocusChange = stopSmartWalk
mouseGrabberWidget = gameRootPanel:getChildById('mouseGrabber')
mouseGrabberWidget.onMouseRelease = onMouseGrabberRelease
bottomSplitter = gameRootPanel:getChildById('bottomSplitter')
gameMapPanel = gameRootPanel:getChildById('gameMapPanel')
gameRightPanel = gameRootPanel:getChildById('gameRightPanel')
gameLeftPanel = gameRootPanel:getChildById('gameLeftPanel')
gameBottomPanel = gameRootPanel:getChildById('gameBottomPanel')
connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
logoutButton = modules.client_topmenu.addLeftButton('logoutButton', tr('Exit'), '/images/topbuttons/logout', tryLogout, true)
setupViewMode(0)
bindKeys()
load()
if g_game.isOnline() then
show()
end
end
function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end