Conversation
|
I made it possible to apply also to 3D cab. Please see the next video. In addition, the sample is here. In order to operate this sample data, following data:
|
|
Very neat! That's I think worthy of a major version number increase :) I see you're using the openGL selection buffer, hadn't thought of that. It'd probably be possible to create an automatic parser for existing Panel2.cfg files. |
|
Thanks!!
Oh, I seem to have misunderstood. Is that to automatically activate the touch operation on existing panel2.cfg? |
|
Correct, that's what I was thinking of. I'm not sure how well it'd work without trying it- There are some heavily layered panels (a
It's nowhere near perfect, and would probably need to be disabled by default, but it may well give wider adoption. |
|
Another couple of small improvements:-
|
|
It may be possible to change the hand icon by using SelectMode within the MouseMove event. |
|
When you add a cursor image to Data/Cursors, you can select it with the optional second page. |
|
Very nice :) Might have to be a little careful in animated panels with massive 3D power handles, but overall the actual render process takes virtually no time compared to updating the verticies for all the animated objects within the world. |
|
I added custom cursors. Custom cursors licence: |
|
OK. Let's try it. |
|
I finished adding symbols to the cursor. |
|
Really great! |
|
Thanks! |
|
Done. |
|
Thanks!! |
|
I've added a basic converter into CarXMLConvertor for existing panel2.cfg files in this branch: Something not quite right though- The camera restriction is out of whack somewhere. I think this is in the panel.xml parser, as from a brief skim the output looks right. Haven't debugged, will try and do that tomorrow :) |
|
Let me also see. |
|
Camera restrictions exist in this section as well as Panel2.cfg. Camera restrictions are in the following location of the Panel.xml parser. |
|
The 2D cab for the 81xx gives a very visible breakage: At work, so can't do a screenshot. |
|
I'll give it a try. |
|
Oh, I understand. |
|
That makes sense- Will think about properly when home. |
| IEnumerable<XElement> DocumentElements = CurrentXML.Root.Elements("Panel"); | ||
|
|
||
| // Check this file actually contains OpenBVE panel definition elements | ||
| if (DocumentElements == null) |
There was a problem hiding this comment.
I think we probably want to check for count > 0 here?
Otherwise, if valid XML we get a collection with zero nodes.
There was a problem hiding this comment.
As you say, I would rather check the count> 0 and throw an exception.


This PR adds a touch element.
OpenBVE / BVE5 is chronically suffering from a key shortage.
So we decided to add a touch operation.
Please see the next video.
https://twitter.com/S520_BVE/status/1097600408912969728
In addition, the sample is here.
In order to operate this sample data, following data: