Closed Hanhan139 closed 1 year ago
In any case, I can always just use a bigger image. But is there a way to hide that thing from the get-go?
Maybe use the css-property visibility
-- Solved! --
Visibility does remove it;
The problem with visibility
is that the bar won't turn visible again with the commands we learnt in the lesson.
document.getElementsByName("aisakaScore").forEach(meterStuff => meterStuff.hidden = false);
BUT you can get any CSS/HTML Item with and ID with that command. If anyone else is having this problem, you can access the CSS options with .style.attributeyouwanttochange = "changedValue".
You have to pass over any values as a string, and setting visibility "true" is not enough; You have to set it to "inherit" and it will work as normally before!
document.getElementById("aisakaMeter").style.visibility = "inherit";
-- This: --
Meter-bar goes hiiiiiii~
-- Other: -- Riem said in the VN discord chat that: "(...) also MeterBar einfach platziert in der HTML unter dem geschlossenen speech-tag dann ist es nicht auf dem Splash-Screen :)"
It is placed there correctly and still shows; I suspect that, in Riem's example, she theoretically simply hides it behind the sparkling star background. But if my splash screen image is smaller, how do I hide the meta-bar from the viewer?
-- File/s: -- Template.html (yep its still named Template, will be renamed in the future) Template.css Image: Assets/Backgrounds/BG_FUD_General.png -- Git: -- https://github.com/Hanhan139/HFU_VisualNovel -- Code: --
`
`